SyntaxFix
Write A Post
Hire A Developer
Questions
Maybe you are looking for something like this:
StackFrame frame = new StackFrame(1); frame.GetMethod().Name; //Gets the current method name MethodBase method = frame.GetMethod(); method.DeclaringType.Name //Gets the current class name