title: passing a method as a constructor's parameter
body: <p>While I was looking at some c# code I found a new class declaration which had passed a method as a constructor’s parameter.This is my first time I have seen something like this and it has no meaning for me .Although the whole application works fine  I am still interested to know  what is the main idea behind the scene. </p>
  
  <pre><code>var c = new List&lt;TheClass&gt;
  {
      new TheClass(TheMethod);
  }
  
  private void TheMethod()
  {
      //do somthing
  }
  </code></pre>