I’ve added a new tool to the downloads page called On The Fly .NET. It’s a simple utility that lets you type in C# or VB.NET and run it. I use it mainly to test little snippets of code and for writing samples when I want to make sure they actually compile (and possibly run). It has basic syntax highlighting and code completion so it makes it easier to test things or check the name of a property/method.
I haven’t done any thorough testing, but you’ll need at least .NET 2 and might need 3 since it currently imports some of the base WPF classes.
To output a result, you can simply use Console.Write()/WriteLine() and the content will be displayed in a separate window. It’ll remember some basic settings such as the code you last typed. You’ll need the Main function to exist as that will be the starting point of the dynamically compiled application, but you can always get the default template in the correct language which contains the required stub code by clicking New….
7c000188-e7ca-48cb-ad52-38a2be2e5cc8|0|.0