title: How to use a variable as a method name using dynamic objects
body: <p>In SignalR there is public property defined in the HubConnectionContext as such:</p>
  
  <pre><code>public dynamic All { get; set; }
  </code></pre>
  
  <p>This enables users to call it like: <code>All.someMethodName();</code>  which is brilliant.</p>
  
  <p>I now would like to call this using an incoming parameter in my function.  How can I do this?</p>
  
  <p>As in:   <code>All.&lt;my variable as method name&gt;();</code></p>
  
  <p>Is there any way of doing this?</p>
  
  <p>Thanks</p>
  
  <p><strong>EDIT</strong> example:</p>
  
  <pre><code>    public void AcceptSignal(string methodToCall, string msg)
      {
          Clients.All.someMethod(msg);       // THIS WORKS
          Clients.All.&lt;methodToCall&gt;(msg);   // THIS DOES NOT WORK (But I would like it to!)
      }
  </code></pre>