Esempio n. 1
0
 protected override bool CollectionEquals(RecordEnumerable <TCollection, T> other)
 {
     if (!(other is RecordCollection <TCollection, T> otherCollection))
     {
         return(false);
     }
     return(Count == otherCollection.Count && base.CollectionEquals(other));
 }
Esempio n. 2
0
 public bool Equals(RecordEnumerable <TSeq, T> other) =>
 !ReferenceEquals(null, other) &&
 (ReferenceEquals(this, other) ||
  Collection.Count() == other.Collection.Count() &&
  CollectionEquals(other));
Esempio n. 3
0
 protected virtual bool CollectionEquals(RecordEnumerable <TSeq, T> other) =>
 Collection.SequenceEqual(other.Collection);