MacroMethodContainer Methods |
The MacroMethodContainer type exposes the following members.
Name | Description | |
---|---|---|
CompareDateTime |
Compares DateTime values.
| |
CompareDouble |
Compares double numbers.
| |
CompareString |
Compares strings (lexicographically).
| |
CompareTimeSpan |
Compares TimeSpan values.
| |
CompareValues |
Returns true if first parameter is lower than or equal to second.
| |
GetBoolParam |
Returns the parameter converted to boolean or false if parameter is not boolean.
| |
GetDoubleParam |
Returns the parameter converted to double or zero if parameter is not double.
| |
GetExtension(String) |
Returns a Extension of given name (return null if specified Extension does not exist).
(Inherited from MacroExtensionContainerTContainer, TExtension.) | |
GetExtension(Type, String) |
Returns the extension by type and name. Does not cache the result. Does not cache the result.
(Overrides MacroExtensionContainerTContainer, TExtensionGetExtension(Type, String).) | |
GetExtensions |
Gets the extensions for the given type. Does not cache the result.
(Overrides MacroExtensionContainerTContainer, TExtensionGetExtensions(Type).) | |
GetGuidParam |
Converts the parameter to GUID. Returns Guid.Empty if parameter is not GUID.
| |
GetIntParam |
Returns the parameter converted to integer or zero if parameter is not integer.
| |
GetLazyParamValue |
Gets the lazy parameter value by evaluating it
| |
GetMethod |
Returns a method of given name (return null if specified method does not exist).
| |
GetMethodForObject |
Returns macro method object of given name if registered for specified object.
It loops through all MacroMethodContainer extensions of given object type.
Returns null if there is no such Extension for given object.
| |
GetMethodsForObject |
Returns list of macro method extension registered for specified object.
Returns null if there is no such extension for given object.
| |
GetOptionalParamT |
Gets the optional param of the given type
| |
GetParamValueT |
Returns the index-th parameter evaluated using given resolver.
| |
GetStringParam |
Returns the parameter converted to string or empty string.
| |
RegisterExtension |
Registers a Extension to the container.
(Inherited from MacroExtensionContainerTContainer, TExtension.) | |
RegisterExtensions |
Registers all the methods.
(Overrides MacroExtensionContainerTContainer, TExtensionRegisterExtensions.) | |
RegisterMethod |
Registers the given method.
| |
RegisterMethodInternal(String, FuncEvaluationContext, Object, Object, Type, String, Int32, Object, String) |
Registers the given method within the method table.
| |
RegisterMethodInternal(String, FuncEvaluationContext, Object, Object, Type, String, Int32, Object, String) |
Registers the given method within the method table.
| |
RegisterMethods |
Registers all the methods.
| |
RegisterMethods(MacroMethod) |
Registers the given methods.
| |
UnwrapContainer |
Unwraps all DateTime and TimeSpan containers to their original system value.
|
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |