Exemple #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));
 }
 public bool Equals(RecordEnumerable <TSeq, T> other) =>
 !ReferenceEquals(null, other) &&
 (ReferenceEquals(this, other) ||
  Collection.Count() == other.Collection.Count() &&
  CollectionEquals(other));
 protected virtual bool CollectionEquals(RecordEnumerable <TSeq, T> other) =>
 Collection.SequenceEqual(other.Collection);