G
Guest
Is it possible to execute a C# string inside a méthod ?
I would like duplicate the same behavior than DataBinder.Eval méthod.
Example:
string code = "this.myProperty * 5;";
object result = someCSharpEvaluationObject.Eval(code);
is it possible ? with reflexion pehaps ?
Thanks
I would like duplicate the same behavior than DataBinder.Eval méthod.
Example:
string code = "this.myProperty * 5;";
object result = someCSharpEvaluationObject.Eval(code);
is it possible ? with reflexion pehaps ?
Thanks