public static MethodDefinition Resolve(IAssemblyResolver resolver, MethodReference method) { var type = Resolve(resolver, method.DeclaringType); if (type == null) { return(null); } method = method.GetElementMethod(); if (!type.HasMethods) { return(null); } return(GetMethod(resolver, type, method)); }
public sealed override MethodReference GetElementMethod() { return(method.GetElementMethod()); }
public static MethodDefinition Resolve (IAssemblyResolver resolver, MethodReference method) { var type = Resolve (resolver, method.DeclaringType); if (type == null) return null; method = method.GetElementMethod (); if (!type.HasMethods) return null; return GetMethod (resolver, type, method); }