Beispiel #1
0
 protected bool Equals(HeaderRecord other)
 {
     return(Id == other.Id &&
            RecordIdentity == other.RecordIdentity &&
            string.Equals(MainFrameIdentity, other.MainFrameIdentity) &&
            DateOfExtract.Equals(other.DateOfExtract) &&
            TimeOfExtract.Equals(other.TimeOfExtract) &&
            string.Equals(CurrentFileRef, other.CurrentFileRef) &&
            string.Equals(LastFileRef, other.LastFileRef) &&
            ExtractUpdateType == other.ExtractUpdateType &&
            string.Equals(CifSoftwareVersion, other.CifSoftwareVersion) &&
            UserExtractStartDate.Equals(other.UserExtractStartDate) &&
            UserExtractEndDate.Equals(other.UserExtractEndDate) &&
            string.Equals(MainFrameUser, other.MainFrameUser) &&
            MainFrameExtractDate.Equals(other.MainFrameExtractDate));
 }
Beispiel #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)RecordIdentity;
         hashCode = (hashCode * 397) ^ (MainFrameIdentity != null ? MainFrameIdentity.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DateOfExtract.GetHashCode();
         hashCode = (hashCode * 397) ^ TimeOfExtract.GetHashCode();
         hashCode = (hashCode * 397) ^ (CurrentFileRef != null ? CurrentFileRef.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (LastFileRef != null ? LastFileRef.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)ExtractUpdateType;
         hashCode = (hashCode * 397) ^ (CifSoftwareVersion != null ? CifSoftwareVersion.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ UserExtractStartDate.GetHashCode();
         hashCode = (hashCode * 397) ^ UserExtractEndDate.GetHashCode();
         hashCode = (hashCode * 397) ^ (MainFrameUser != null ? MainFrameUser.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ MainFrameExtractDate.GetHashCode();
         return(hashCode);
     }
 }