[]
        
(Showing Draft Content)

C1.CalcEngine.C1CalcEngine.AddFunction

AddFunction Method

AddFunction(List<ExpressionItem>, Func<List<object>, object>, int, int)

Adds a custom function.

Declaration
public void AddFunction(List<ExpressionItem> items, Func<List<object>, object> function, int minArgsCount, int maxArgsCount)
Parameters
Type Name Description
List<ExpressionItem> items

Provides the function description.

Func<List<object>, object> function

The delegate that evaluates the function.

int minArgsCount

Minimum arguments count.

int maxArgsCount

Maximum arguments count.

Implements