mparlak / Flee

Fast Lightweight Expression Evaluator
624 stars 119 forks source link

Substring #65

Open Msirkovsky opened 5 years ago

Msirkovsky commented 5 years ago

Hello,

This code:

var context = new ExpressionContext();
context.Imports.AddType(typeof(string));
var e = context.CompileDynamic("\"TEST\".Substring((0,2)");

returns me: FunctionCallElement: Could find not function 'Substring(Double)' on type 'String'

Is it correct behaviour?

Thank you

hunkydoryrepair commented 3 years ago

this would be regionsettings causing the comma to be a decimal separator rather than an argument separator. should close this issue.