public static MethodInterpreterKey ToKey(this MethodInterpreter methodInterpreter, Type implementingType = null) { var resultKey = new MethodInterpreterKey(methodInterpreter, implementingType); resultKey.AdjustDeclaringTypeByImplementingType(); return(resultKey); }
public static MethodInterpreterKey ToKey(this MethodBase methodbase, ClosureEntities closure) { var interpreter = closure.ResolveMethod(methodbase); var resultKey = new MethodInterpreterKey(interpreter, null); resultKey.AdjustDeclaringTypeByImplementingType(); return(resultKey); }