.NET 4.5 - Information of Caller Function (Caller Attributes)

added by justphil
10/2/2012 9:40:12 AM

0 Kicks, 80 Views

While debugging code “Who called my function ?” is a million dollar question. Knowing the origin of your function call is in many cases the first step in debugging any code. Until now a few ways of doing this were to look at the CallStack in visual studio or a debugger or the most common Exception.StackTrace. .NET 4.5 has added a new feature with which a function can now know who is calling it.