Kim Hauser has written a nice little article on how to use Eval in .NET to compile/evaluate C# code at runtime.