internal MethodDesc ResolveRuntimeMethod(bool unboxingStub, DefType owningType, MethodNameAndSignature nameAndSignature, IntPtr functionPointer, bool usgFunctionPointer) { _runtimeMethods ??= new RuntimeMethodKey.RuntimeMethodKeyHashtable(); MethodDesc retVal = _runtimeMethods.GetOrCreateValue(new RuntimeMethodKey(unboxingStub, owningType, nameAndSignature)); if (functionPointer != IntPtr.Zero) { retVal.SetFunctionPointer(functionPointer, usgFunctionPointer); } return(retVal); }