title: Cannot Convert From Method Group to Func<int>
body: <p>I am planning to have a dictionary which has a command string and function. When the user enters the command string, the function will execute. However, a compiler error which I cannot seem to fix is preventing me from doing this. <code>Argument 2: cannot convert from 'method group' to 'Func&lt;int&gt;' </code></p>
  <pre><code>class Program
      {
          static Dictionary&lt;string, Func&lt;int&gt;&gt; SendCmdList = new Dictionary&lt;string, Func&lt;int&gt;&gt;();
  
          static void test(int index)
          {
              clients[index].SendPacket(new Packet { Cmd = 0x8 });
          }
  
          static void Main(string[] args)
          {
              SendCmdList.Add(&quot;!send&quot;, test);
  </code></pre>
  <p>I don't seem to understand what is causing it. Any help would be greatly appreciated.</p>