public static bool Equals(ListSet <T> first, ListSet <T> second) { if (object.Equals(null, first)) { if (object.Equals(null, second)) { return(true); } return(false); } else { return(first.Equals(second)); } }
public bool Equals(ListSet <T> other) { if (other == null) { return(false); } if (Count != other.Count) { return(false); } int count = Count; for (int i = 0; i < count; i++) { if (!other[i].Equals(this[i])) { return(false); } } return(true); }