MethodDefinition GetMethod (TypeDefinition type, MethodReference reference) { while (type != null) { var method = GetMethod (type.Methods, reference); if (method != null) return method; if (type.BaseType == null) return null; type = Resolve (type.BaseType); } return null; }
private MethodDefinition GetMethod(TypeDefinition type, MethodReference reference) { while (type != null) { MethodDefinition method = MetadataResolver.GetMethod(type.Methods, reference); if (method != null) { return(method); } if (type.BaseType == null) { return(null); } type = this.Resolve(type.BaseType); } return(null); }