![]() |
![]() |
![]() Welcome! and rules Joel on Software |
Class Name I have a class that is derived from the IMessageSink interface. In the SyncProcessMessage i want to get the class name of the method invoked. How is it possible?
SK
this.GetType().FullName ??
maybe I'm missing something
I have a custom attribute. all my classes have this custom attribute. when any of the method in these classes is called. control goes to the MessageSink of the custom attribute class. There i want to get the calling methods class name........That is not possible using this.getType
SK
Perhaps you can do it with the System.Diagnostics.StackTrace class.
Christopher Wells
Try something like this:
John Lewicki
|