how can I convert a string to be an equation with variable avoiding function eval()?
I'm working on .net core and I have this
decimal total;
string var;
total = total + var;
but the string var is an equation with variable for now can be "1" or "total*2/100" but in future can be something else