How can I get the name of the calling function in C#?
<p>I need to get the name of the calling function in C#. I read about stackframe method but everywhere its said its not reliable and hurts the performance.</p>

<p>But I need it for production use. I am writing a custom tracer which will be logging the name of the method from which trace was called as well.</p>

<p>Could someone please help with a efficient method to get the calling function name? I am using Visual Studio 2010.</p>
