Click or drag to resize
VariableContainerExtensionsRegisterFunction Method (IVariableContainer, String, MethodInfo, Object)
Registers a function in for expression evaluation, if the function exists already, will be overwritten.

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,
	MethodInfo method,
	Object target
)

Parameters

container
Type: FlexRuleIVariableContainer
function
Type: SystemString
function name
method
Type: System.ReflectionMethodInfo
target
Type: SystemObject
Type if the method 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).
Remarks
Overriding a function allows you to replace an existing function with a new one.
See Also