Possible Duplicate:
C# eval equivalent?
Some languages like Perl or JavaScript have cool (although not fast) eval function for running code from string.
Does .NET has some king of that functionality for C# ?
Is there anything that offers interface like this:
var e = new Evaluator("C#");
e.Eval("int a=3; Console.Writeline(\"{0}\", a); return 123;");
int x = (int)e.Result;
?