Class Name

  • Thread starter Thread starter SK
  • Start date Start date
S

SK

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?
 
Console.WriteLine("Method name: " + new
System.Diagnostics.StackTrace().GetFrame(0).GetMethod().Name);

Christian
 
No this wont work.
In want to capture the class name in the message sink of
the custom attribute.
The above mentioned class implements a custom attribute
 
Back
Top