예제 #1
0
        public static MethodInterpreterKey ToKey(this MethodInterpreter methodInterpreter, Type implementingType = null)
        {
            var resultKey = new MethodInterpreterKey(methodInterpreter, implementingType);

            resultKey.AdjustDeclaringTypeByImplementingType();
            return(resultKey);
        }
예제 #2
0
        public static MethodInterpreterKey ToKey(this MethodBase methodbase, ClosureEntities closure)
        {
            var interpreter = closure.ResolveMethod(methodbase);
            var resultKey   = new MethodInterpreterKey(interpreter, null);

            resultKey.AdjustDeclaringTypeByImplementingType();
            return(resultKey);
        }