Accepted answer

Two options come to mind:

  • If the operations are fairly simple you can have a look at the new Roslyn CTP. Roslyn is a new managed compiler for Visual Studio that you can use in your own code. It let's you easily compile snippets of code and execute them.
  • Another thing you can have a look at are Expression Trees. With the Expression Tree Serializer you can serialize an expression tree and possible save it in a database. But then you will need some kind of user interface to construct those expression trees. On the MSDN you can find some examples of how to construct an expression tree by hand

Related Articles