[]
        
(Showing Draft Content)

C1.CalcEngine.ExpressionEngine.IExpressionSyntax.RegisterFunction

RegisterFunction Method

RegisterFunction(string, int, int, Func<List<IExpression>, object>, ItemType)

Registers a function that can be evaluated by expression engine.

Declaration
void RegisterFunction(string functionName, int minArgsCount, int maxArgsCount, Func<List<IExpression>, object> function, ItemType functionType)
Sub RegisterFunction(functionName As String, minArgsCount As Integer, maxArgsCount As Integer, [function] As Func(Of List(Of IExpression), Object), functionType As ItemType)
Parameters
Type Name Description
string functionName

Function name.

int minArgsCount

Minimum parameter count.

int maxArgsCount

Maximum parameter count.

Func<List<IExpression>, object> function

Delegate that evaluates the function.

ItemType functionType

Function type.

RegisterFunction(string, int, Func<List<IExpression>, object>, ItemType)

Registers a function that can be evaluated by expression engine.

Declaration
void RegisterFunction(string functionName, int argsCount, Func<List<IExpression>, object> function, ItemType functionType)
Sub RegisterFunction(functionName As String, argsCount As Integer, [function] As Func(Of List(Of IExpression), Object), functionType As ItemType)
Parameters
Type Name Description
string functionName

Function name.

int argsCount

Parameter count.

Func<List<IExpression>, object> function

Delegate that evaluates the function.

ItemType functionType

Function type.