private bool NeedToBeFiltered(TypeDefinition t, MethodDefinition method) { return (!t.AllSuperTypes().Contains(method.DeclaringType) || method.IsStatic || (method.IsGeneratedCode() && !method.IsSetter && !method.IsGetter) || method.IsConstructor || (method.IsSpecialName && !method.IsSetter && !method.IsGetter) || "Dispose" == method.Name || "ToString" == method.Name || "Equals" == method.Name || "GetHashCode" == method.Name); }