コード例 #1
0
        public static T GetIntercepted <T>(this Interceptor bindable)
        {
            StackTrace trace   = new StackTrace();
            StackFrame frame   = trace.GetFrame(1);
            Type       calling = frame.GetMethod().DeclaringType;

            return(MethodBinder.GetBoundFromType <T>(calling));
        }