My question is: Is there a simple way to convert a string to a single executable instruction?
For example:
string function = "x*x+Math.Sin(x)";
public double f(double x)
{
return function.Something...();
//it should return x*x+Math.Sin(x);
}
P.S.: The string is written correctly at all times