public bool EqualsInputTypes(Method other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } if (InputTypes.Count != other.InputTypes.Count) { return(false); } if (InputTypes.Where((t, i) => !t.Equals(other.InputTypes[i])).Any()) { return(false); } return(true); }
public bool Equals(Method other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } if (Name != other.Name || InputTypes.Count != other.InputTypes.Count || !Equals(ReturnType, other.ReturnType) || !Equals(OwnerClass, other.OwnerClass) || IsConst != other.IsConst || IsTemplate != other.IsTemplate) { return(false); } return(!InputTypes.Where((t, i) => !t.Equals(other.InputTypes[i])).Any()); }