Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting calling method name?
Message
De
26/02/2013 15:15:46
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01566974
Message ID:
01566982
Vues:
68
This message has been marked as the solution to the initial question of the thread.
>Yes, I know. I decided to change it and log in the caller directly. I do have to pass one parameter out though :(

I looked in my code as I do some of that but not exactly the one you are looking for. But, the StackTrace approach could be considered if you ever want to avoid passing parameters:

http://stackoverflow.com/questions/615940/retrieving-the-calling-method-name-from-within-a-method-c
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform