Пример #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);
        }