title: Dynamic method in c#
body: <p>I have many labels on the form, and every label invokes same method with different argument(which belongs to label text/name). Here is the code:</p>
  
  <pre><code>    //"res" is an array
      private void label1_Click(object sender, EventArgs e)
      {                       
          checkresult(res[0]);
      }
  
      private void label2_Click(object sender, EventArgs e)
      {        
          checkresult(res[1]);
      }
  
      private void label3_Click(object sender, EventArgs e)
      {  
          checkresult(res[2]);
      }
  
      private void label4_Click(object sender, EventArgs e)
      { 
          checkresult(res[3]);
      }
  
      private void label5_Click(object sender, EventArgs e)
      {
          checkresult(res[4]);
      }
  
      private void label6_Click(object sender, EventArgs e)
      {
          checkresult(res[5]);
      }
  
      private void label7_Click(object sender, EventArgs e)
      {
          checkresult(res[6]);
      }
  
      private void label8_Click(object sender, EventArgs e)
      {
          checkresult(res[7]);
      }
  
      private void label9_Click(object sender, EventArgs e)
      {
          checkresult(res[8]);
      }
  </code></pre>
  
  <p>I just want to precise my code by defining only one method for all labels. How can i do it?</p>