Click or drag to resize
VariableContainerExtensionsRegisterFunction Method (IVariableContainer, String, String, Type, Object)
Registers a function for expression evaluation

Namespace: FlexRule
Assembly: FlexRule.Core.Library (in FlexRule.Core.Library.dll) Version: 0.0.0.0 (0.0.0.0)
Syntax
C#
public static IVariableContainer RegisterFunction(
	this IVariableContainer container,
	string function,
	string methodName,
	Type[] arguments,
	Object target
)

Parameters

container
Type: FlexRuleIVariableContainer
function
Type: SystemString
methodName
Type: SystemString
arguments
Type: SystemType
Arguments of method, it can be null if there is no argument
target
Type: SystemObject
Type if the methodName is a static member, otherwise object instance

Return Value

Type: IVariableContainer

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IVariableContainer. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also