blob: 412762b07ff4fb8f6519b2fdaa6ce08138e3d514 [file] [log] [blame]
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);
}
}