public virtual MethodBase ResolveMethod(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) { RuntimeModule module = this as RuntimeModule; if (module == null) { throw new NotImplementedException(); } return(module.ResolveMethod(metadataToken, genericTypeArguments, genericMethodArguments)); }
public virtual MethodBase ResolveMethod(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) { // This API was made virtual in V4. Code compiled against V2 might use // "call" rather than "callvirt" to call it. // This makes sure those code still works. RuntimeModule rtModule = this as RuntimeModule; if (rtModule != null) { return(rtModule.ResolveMethod(metadataToken, genericTypeArguments, genericMethodArguments)); } throw new NotImplementedException(); }