title: Call methods stored in a dictionary
body: <p>i'm looking at the examples posted here: for calling methods from a dictionary,
  could anyone suggest something a bit more real world?</p>
  
  <p>Calling a method that has some more and complex parameters, I tried to adjust the examples here but sorry, not experienced enough.</p>
  
  <p>This was posted but how about calling a method like this?</p>
  
  <pre><code>private static void Method1(string[] curr, string[] prev, int counter)
  {
      var a1 = curr[5];
      Console.WriteLine(a1);
  }
  </code></pre>
  
  <p>Sorry if question is a bit "tony the pony" :-)</p>
  
  <p>prev posted example below</p>
  
  <pre><code>    private static void Method1(int x)
      {
          Console.WriteLine(x);
      }
  
      private static void Method2(int x)
      {
      }
  
      private static void Method3(int x)
      {
      }
  
      static void Main(string[] args)
      {
          Dictionary&lt;int, Action&lt;int&gt;&gt; methods = new Dictionary&lt;int, Action&lt;int&gt;&gt;();
          methods.Add(1, Method1);
          methods.Add(2,  Method2);
          methods.Add(3, Method3);
  
          (methods[1])(1);
      }
  </code></pre>