class Concat : IFunction
{
public FunctionValue CustomFunctionCalculate(IList<FunctionValue> args, Cell currentCell)
{
StringBuilder result = new StringBuilder("");
foreach (FunctionValue arg in args)
if (arg.Type != FunctionValueType.RANGE)
result.Append(arg);
return new FunctionValue(result.ToString());
}
} |