public FunctionValue CustomFunction(IList<FunctionValue> args, Cell currentCell)
{
StringBuilder result = new StringBuilder("");
foreach (FunctionValue arg in args)
if (arg.Type != FunctionValueType.RANGE)
{
// Access the Value property and append it to the result
result.Append(arg.Value);
}
return new FunctionValue(result.ToString());
} |