title: No overload matches delegate
body: <p>Thanks to a question previously answered on this website, I've built a little block of code. Unfortunately, I've been getting an error that I don't quite understand. Here's the block of code:</p>
  
  <pre><code>        private void AddTextToUpListBox(string text)
      {
          if (lbxServersThatAreUp.InvokeRequired)
          {
              lbxServersThatAreUp.Invoke(new MethodInvoker(AddTextToUpListBox), new object[] { });
              return;
          }
  
          lbxServersThatAreUp.Items.Add(text);
      }
  </code></pre>
  
  <p>The error I'm getting is "No Overload for 'AddTextToUpListBox' matches delegate 'System.Windows.Forms.MethodInvoker'"</p>
  
  <p>So I tried changing the following line like so:</p>
  
  <pre><code>lbxServersThatAreUp.Invoke(new MethodInvoker(AddTextToUpListBox(text)), new object[] { });
  </code></pre>
  
  <p>but if I do that, it just says "Method name expected". What am I doing wrong here?</p>