title: How to resolve "cannot convert from 'method group' to 'object'" compilation error?
body: <p>I am getting the following errors when I compile my program:</p>
  
  <blockquote>
    <p>Error 1   The best overloaded method match for
    'System.Windows.Forms.ListBox.ObjectCollection.Add(object)' has some
    invalid arguments C:\Users\Jose\documents\visual studio
    2013\Projects\practice1\practice1\Form1.cs    26  13  practice1</p>
    
    <p>Error 2   Argument 1: cannot convert from 'method group' to
    'object'  C:\Users\Jose\documents\visual studio
    2013\Projects\practice1\practice1\Form1.cs    26  35  practice1</p>
  </blockquote>
  
  <p>Here is the code I am struggling with:</p>
  
  <pre><code>namespace practice1
  {
      public partial class Form1 : Form
      {
          public Form1()
          {
              InitializeComponent();
          }
  
          private void button1_Click(object sender, EventArgs e)
          {
              talonary talonaryobj = new talonary(txtname.Text, txtlastname.Text,double.Parse(txtSalary.Text));
  
              lsttalonary.Items.Add(talonaryobj.name);
              lsttalonary.Items.Add(talonaryobj.lastname);
              lsttalonary.Items.Add(talonaryobj.calculateSalary);   //ERROR LINE
          }
      }    
  }
  </code></pre>
  
  <p>This is the class I am using:</p>
  
  <pre><code>namespace practice1
  {
      public class talonary
      {
         public string name;
         public string lastname;
         public double salary;
  
         public talonary(string n, string ln, double s)
         {
             this.name = n;
             this.lastname = ln;
             this.salary = s;
         }
  
         public string calculateSalary(double s)
         {
             s = s - (s * 0.05);
             return s.ToString();
         }
      }
  }
  </code></pre>