CodeMethod Class |
Namespace: Omada.OE.Model
[SerializableAttribute] public class CodeMethod : ICloneable, IObjectWithId
The CodeMethod type exposes the following members.
| Name | Description | |
|---|---|---|
| CodeMethod(Int32) | ||
| CodeMethod(CodeMethodAction) |
| Name | Description | |
|---|---|---|
| ActionId | ||
| Class |
Navn på klassen som rummer metoden.
| |
| ClassFullName |
Contains class name and it's namespace (example: Omada.API.TestClass)
| |
| CodeAssemblyId |
Angiver det code assembly som rummer selve .net metoden.
| |
| Method |
Name of the .net method.
| |
| MethodFullName |
Contains class name, namespace and method name (example: Omada.API.TestClass.SomeMethod)
| |
| Namespace |
Navn på namespace som klassen befinder sig i.
| |
| Owner | ||
| Parameters |
| Name | Description | |
|---|---|---|
| Clone |
Shallow copy Owner, replaced in CodeMethodAction.Clone()
| |
| GetChangeMessage |
Check if there is any change in class or method or parameters (if checkParameters == true)
of the code method against its codeAssembly
if there is any change, UserMessages.Count > 0
| |
| GetParamChangeMessages |
Pre: parameterInfos must be a valid ParameterInfo array list
Check whether there is any change in the method parameters:
- new parameter(s) being added, and/or
- dataType or direction changed and/or
- exist parameter(s) removed
UserMessages.Count > 0
| |
| GetParamDataTypesStr |
Add all parameters data type ids of the method to the returning string
| |
| GetParameterInfoDataType | ||
| GetParameterInfoDirection |
returns Direction.Out, if parameterInfo is an out parameter type
returns Direction.In/Out, if parameterInfo is a reference parameter type
returns Direction.In, if parameterInfo is neither of the above types
| |
| GetParameterInfoString |
Returns a commasep. string with the parameters of a method.
The parametersInfos can be obtained using MethodInfo.GetParameters().
| |
| PassesFilter | ||
| ToString | (Overrides ObjectToString.) | |
| ValidateParameters |
Validates parameters info (from method info) against the code method parameters of the code method
|
| Name | Description | |
|---|---|---|
| ToBool |
Converts object to boolean.
(Defined by ObjectExtensions.) | |
| ToDateTime |
Converts object to DateTime.
(Defined by ObjectExtensions.) | |
| ToInt |
Converts object to integer.
(Defined by ObjectExtensions.) |
| Name | Description | |
|---|---|---|
| IObjectWithId.GetId |