public bool Equals(SpfRecords other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Records.CollectionEqual(other.Records) && PayloadSizeBytes == other.PayloadSizeBytes && Messages.CollectionEqual(other.Messages)); }