Execute a user-provided string containing c# code
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4629/c-eval-equivalent">C# eval equivalent?</a>  </p>
</blockquote>



<p>Hi - I was wondering how I can execute a user provided string containing c# code from my application.</p>

<p>Example:</p>

<pre><code>string userProvidedString = "Console.Write("Hello World!")";

ExecuteCode(userProvidedString); // Should output Hello World!
</code></pre>
