Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting calling method name?
Message
 
 
To
26/02/2013 15:02:57
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01566974
Message ID:
01566981
Views:
37
>>I have a method which I call from another method. I am wondering whether is a way to get that calling method's name in the current method?
>>
>>I want to use this for logging. I guess I can pass the method's name as alternative.
>
>You will need to use reflection for that.

Yes, I know. I decided to change it and log in the caller directly. I do have to pass one parameter out though :(
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform