Is there a built in expression parser (much like the VBScript Eval function) in C#? What I mean is something that will evaluate string functions as if they were an expression. ie:
int i;
i = 0;
i = Eval("1+1"
Console.WriteLine(i.ToString());
//Output: 2
I would rather not write one myself so if anyone knows of such a function please respond. Thank you.
int i;
i = 0;
i = Eval("1+1"
Console.WriteLine(i.ToString());
//Output: 2
I would rather not write one myself so if anyone knows of such a function please respond. Thank you.