internal MemberInfo ResolveOrGetRegisteredToken(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) { ResolveTokenError error; MemberInfo? m = RuntimeModule.ResolveMemberToken(_impl, metadataToken, RuntimeModule.ptrs_from_types(genericTypeArguments), RuntimeModule.ptrs_from_types(genericMethodArguments), out error); if (m != null) { return(m); } m = GetRegisteredToken(metadataToken) as MemberInfo; if (m == null) { throw RuntimeModule.resolve_token_exception(Name, metadataToken, error, "MemberInfo"); } else { return(m); } }