Namespace: Albatross.Expression.Prefix
Represents the Len function that returns the length of strings, collections, or JSON arrays.
public class Len : PrefixExpression, Albatross.Expression.Nodes.IPrefixExpression, Albatross.Expression.Nodes.IExpression, Albatross.Expression.Nodes.IToken
Inheritance Object → PrefixExpression → Len
Implements IPrefixExpression, IExpression, IToken
The name of the prefix function.
public string Name { get; }
The token representation, which is the same as the Name.
public string Token { get; }
The minimum number of operands this function requires.
public int MinOperandCount { get; }
The maximum number of operands this function accepts.
public int MaxOperandCount { get; }
The list of operand expressions passed to this function.
public IReadOnlyList<IExpression> Operands { get; set; }
Initializes a new instance of the Len class.
public Len()
protected object Run(List<object> operands)
operands
List<Object>