System.Diagnostics.StackFrame.GetMethod C# (CSharp) Method

GetMethod() public method

public GetMethod ( ) : System.Reflection.MethodBase
return System.Reflection.MethodBase
        public virtual System.Reflection.MethodBase GetMethod() { throw null; }
        public override string ToString() { throw null; }

Usage Example

Esempio n. 1
1
        //Can only be called inside a service
        public static void PromoteException(Exception error,MessageVersion version,ref Message fault)
        {
            StackFrame frame = new StackFrame(1);

             Type serviceType = frame.GetMethod().ReflectedType;
             PromoteException(serviceType,error,version,ref fault);
        }
All Usage Examples Of System.Diagnostics.StackFrame::GetMethod