Possible Duplicate:
in c#: expression evaluation function like flash script
I need to calculate an arithmetic expression stored in a string.
The expression contains variables, but these I could replace in advance.
I'd use the JScript eval function, but it is deprecated and it does not honor the current locale set for the program (being in germany my expression is e.g. "4,28*1,10" instead of "4.28*1.10").
It needs to support localization and parantheses.