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