c# call method based on contents of a variable
<p>how do you call a method based on the contents of a variable</p>

<p>ex. </p>

<pre><code>String S = "Hello World";
String Format = "ToUpper()";

String sFormat = s.Format;

resulting in "HELLO WORLD"
</code></pre>

<p>This way I could at some other time pass <code>Format = "ToLower()"</code> or  Format = "Remove(1,4)" which will delete 4 characters starting from pos 1 - in short I would like the ability to call any string method.</p>

<p>Could someone post a complete working solution.</p>
