title: How I can get the calling methods in C#
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/171970/how-can-i-find-the-method-that-called-the-current-method">How can I find the method that called the current method?</a></p>
  </blockquote>
  
  <p>I need a way to know the name of calling methods in C#.</p>
  
  <p>For instance:  </p>
  
  <pre><code>private void doSomething()
  {
  // I need to know who is calling me? (method1 or method2).
  
  // do something pursuant to who is calling you?
  } 
  
  private void method1()
  {
   doSomething();
  }
  
  private void method2()
  {
   doSomething();
  }
  </code></pre>