I'm sure something like this exists, but I can't for the life of me remember what it is called.
I'm looking for an app where I can just execute an arbitrary block of C# code and see any console output.
I'm sure something like this exists, but I can't for the life of me remember what it is called.
I'm looking for an app where I can just execute an arbitrary block of C# code and see any console output.
Not necessarily a snippet compiler but I use it for that purpose also:
The neat thing about it is that you can dump intermediate results to the output and has very nice formatting for all types of objects so you won't have to write Console.WriteLine(...) statements.
You can also write only expressions, or simple statements or classes, and it will compile all of them.
Another approach is offered by TestDriven.Net, which allows you to click on any method in the Visual Studio code editor and run it directly.
This can be useful for debugging code that's otherwise buried a little deep to conveniently access.
To round out the other answers, there's also:
LINQPad is my favorite :)