I mentioned nemerle before as C# glorified here . As you know C# 5.0 will came with compiler services that allows us to run dynamic code on runtime. Mono has already have it but it is not available to Windows at the moment (you can reference gmcs on windows but with limited support only). So here's our example:
using System.Console ;
using Nemerle.Evaluation.Evaluator ;
Main() : void
def function = EvaluateExpression( "x => x + 1.0" ) :> double -> double ;
.WriteLine(function(2.0));Just install nemerle from http://nemerle.org and add Nemerle.Macros and Nemerle.Evaluator as reference and run the code that's it!
The above code outputs 3!! Simply wonderful and best of all this code is in visual studio with full intellisense as below: