Pass Method as Parameter using C#
<p>I have several methods all with the same signature (parameters and return values) but different names and the internals of the methods are different.  I want to pass the name of the method to run to another method that will invoke the passed in method.</p>

<pre><code>public int Method1(string)
{
    ... do something
    return myInt;
}

public int Method2(string)
{
    ... do something different
    return myInt;
}

public bool RunTheMethod([Method Name passed in here] myMethodName)
{
    ... do stuff
    int i = myMethodName("My String");
    ... do more stuff
    return true;
}

public bool Test()
{
    return RunTheMethod(Method1);
}
</code></pre>

<p>This code does not work but this is what I am trying to do.  What I don't understand is how to write the RunTheMethod code since I need to define the parameter.</p>
