Possible Duplicate:
How can I evaluate a C# expression dynamically?
I can do this;
int x = 6;
var result = new DataTable().Compute(x + " * 10 / 3", null);
And this;
public delegate double function(double x);
function func = delegate(double x) { return x * 10 / 3; };
So how can i compute like first example and assign it to a delegate like second example?
The goal is doing compute work only once, then use it with many variables.