c# - NCalc using symbols in custom function name -
let's in expression input make functions stand out special prefix $
:
var expr = "your name $proper([firstname]) $upper([lastname])";
where write custom functions $proper
, $upper
.
however, console errors "no viable alternative @ character '$'". works if rid of symbol, or use underscore.
is there way use symbol characters in function names in ncalc? doesn't work when function begins number (as in, if wanted shorthand function name double
2x
).
(sort of similar ncalc evaluation error no viable alternative @ input ',')
Comments
Post a Comment