My guess is it depends on how often you will be doing this and how many iterations you will be running - or if performance is an issue for you at all. The overhead of invoking the C# compiler is going to be much greater than asking IronPython to generate some new code in process. But the C# code is also going to run much faster. So depending on if you are doing compilations a lot and how long the ge