Namespace: Albatross.Expression.Prefix
Prefix expression that concatenates multiple operands into a single string. Takes one or more parameters and joins them together without separators.
public class Concat : PrefixExpression, Albatross.Expression.Nodes.IPrefixExpression, Albatross.Expression.Nodes.IExpression, Albatross.Expression.Nodes.IToken
Inheritance Object → PrefixExpression → Concat
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 Concat class with name “Concat” and variable parameter count (minimum 1).
public Concat()
Concatenates all operands into a single string by converting each to string and joining without separators.
protected object Run(List<object> operands)
operands
List<Object>
List containing one or more operands to concatenate.
Object
A string containing all operands concatenated together.