public int GetHashCode(BListBase <T> obj) { int hash = 0; foreach (var o in obj) { hash ^= kValueEqualityComparer.GetHashCode(o); } return(hash); }
public bool Equals(BListBase <T> x, BListBase <T> y) { bool equals = x.Count == y.Count; if (equals) { for (int i = 0; i < x.Count && equals; i++) { equals &= kValueEqualityComparer.Equals(x[i], y[i]); } } return(equals); }
public int GetHashCode(BListBase <T> obj) { return(kEqualityComparer.GetHashCode(obj)); }
public bool Equals(BListBase <T> x, BListBase <T> y) { return(kEqualityComparer.Equals(x, y)); }