I would like to do the equivalent of:
object result = Eval(\"1 + 3\");
string now = Eval(\"System.DateTime.Now().ToString()\") as string
While C# doesn't have any support for an Eval method natively, I have a C# eval program that does allow for evaluating C# code. It provides for evaluating C# code at runtime and supports many C# statements. In fact, this code is usable within any .NET project, however, it is limited to using C# syntax. Have a look at my website, http://csharp-eval.com, for additional details.