[]
Registers a function that can be evaluated by expression engine.
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)
| 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. |
Registers a function that can be evaluated by expression engine.
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)
| 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. |