/// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (FileId != null)
         {
             hashCode = hashCode * 59 + FileId.GetHashCode();
         }
         if (OwnerPassword != null)
         {
             hashCode = hashCode * 59 + OwnerPassword.GetHashCode();
         }
         if (UserPassword != null)
         {
             hashCode = hashCode * 59 + UserPassword.GetHashCode();
         }
         hashCode = hashCode * 59 + Encryption.GetHashCode();
         hashCode = hashCode * 59 + CanPrint.GetHashCode();
         hashCode = hashCode * 59 + CanCopy.GetHashCode();
         hashCode = hashCode * 59 + CanModify.GetHashCode();
         hashCode = hashCode * 59 + CanAddNotes.GetHashCode();
         hashCode = hashCode * 59 + CanFillFields.GetHashCode();
         hashCode = hashCode * 59 + CanCopyAccess.GetHashCode();
         hashCode = hashCode * 59 + CanAssemble.GetHashCode();
         hashCode = hashCode * 59 + CanPrintFull.GetHashCode();
         return(hashCode);
     }
 }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (Error != null)
         {
             hashCode = hashCode * 59 + Error.GetHashCode();
         }
         hashCode = hashCode * 59 + RemainingTokens.GetHashCode();
         hashCode = hashCode * 59 + PageCount.GetHashCode();
         if (Version != null)
         {
             hashCode = hashCode * 59 + Version.GetHashCode();
         }
         if (Author != null)
         {
             hashCode = hashCode * 59 + Author.GetHashCode();
         }
         if (Title != null)
         {
             hashCode = hashCode * 59 + Title.GetHashCode();
         }
         if (Subject != null)
         {
             hashCode = hashCode * 59 + Subject.GetHashCode();
         }
         if (Producer != null)
         {
             hashCode = hashCode * 59 + Producer.GetHashCode();
         }
         if (Metadata != null)
         {
             hashCode = hashCode * 59 + Metadata.GetHashCode();
         }
         if (Keywords != null)
         {
             hashCode = hashCode * 59 + Keywords.GetHashCode();
         }
         hashCode = hashCode * 59 + HasUserPassword.GetHashCode();
         hashCode = hashCode * 59 + HasOwnerPassword.GetHashCode();
         hashCode = hashCode * 59 + Encryption.GetHashCode();
         hashCode = hashCode * 59 + CanPrint.GetHashCode();
         hashCode = hashCode * 59 + CanCopy.GetHashCode();
         hashCode = hashCode * 59 + CanModify.GetHashCode();
         hashCode = hashCode * 59 + CanAddNotes.GetHashCode();
         hashCode = hashCode * 59 + CanFillFields.GetHashCode();
         hashCode = hashCode * 59 + CanCopyAccess.GetHashCode();
         hashCode = hashCode * 59 + CanAssemble.GetHashCode();
         hashCode = hashCode * 59 + CanPrintFull.GetHashCode();
         return(hashCode);
     }
 }