Dynamic C# code execution
<p>I need to run small snippets of C# code for educational purposes and for each execution, I should open the project (solution), delete existing code, type new code, build and compile, and then run the project. For example, for executing <code>string.IsNullOrEmpty("something")</code> I should follow all this procedure. 
I just thought of something like:</p>

<p><img src="http://i.stack.imgur.com/eIjeR.png" alt="enter image description here"></p>

<p>In which I can enter code snippets, click execute, and then see the result. Is there anyway to do that?</p>
