using System.Collections.Generic; | |
namespace AppsheetEpplus; | |
public class CharFunction : ExcelFunction { | |
public override CompileResult Execute( | |
IEnumerable<FunctionArgument> arguments, | |
ParsingContext context) { | |
ValidateArguments(arguments, 1); | |
var number = ArgToInt(arguments, 0); | |
ThrowExcelErrorValueExceptionIf(() => number < 1 || number > 255, eErrorType.Value); | |
return CreateResult(((char)number).ToString(), DataType.String); | |
} | |
} |