Esempio n. 1
0
 /// <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 (SourcePageRange != null)
         {
             hashCode = hashCode * 59 + SourcePageRange.GetHashCode();
         }
         hashCode = hashCode * 59 + DestinationPage.GetHashCode();
         return(hashCode);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Returns true if PdfMovePageParameters instances are equal
        /// </summary>
        /// <param name="input">Instance of PdfMovePageParameters to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PdfMovePageParameters input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     FileId == input.FileId ||
                     (FileId != null &&
                      FileId.Equals(input.FileId))
                     ) &&
                 (
                     SourcePageRange == input.SourcePageRange ||
                     (SourcePageRange != null &&
                      SourcePageRange.Equals(input.SourcePageRange))
                 ) &&
                 (
                     DestinationPage == input.DestinationPage ||
                     DestinationPage.Equals(input.DestinationPage)
                 ));
        }