Beispiel #1
0
        /// <summary>
        /// Returns true if PdfConvertToPDFAParameters instances are equal
        /// </summary>
        /// <param name="input">Instance of PdfConvertToPDFAParameters to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PdfConvertToPDFAParameters input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     FileId == input.FileId ||
                     (FileId != null &&
                      FileId.Equals(input.FileId))
                     ) &&
                 (
                     Conformance == input.Conformance ||
                     Conformance.Equals(input.Conformance)
                 ) &&
                 (
                     AllowVectorization == input.AllowVectorization ||
                     AllowVectorization.Equals(input.AllowVectorization)
                 ) &&
                 (
                     AllowRasterization == input.AllowRasterization ||
                     AllowRasterization.Equals(input.AllowRasterization)
                 ));
        }
Beispiel #2
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();
         }
         hashCode = hashCode * 59 + Conformance.GetHashCode();
         hashCode = hashCode * 59 + AllowVectorization.GetHashCode();
         hashCode = hashCode * 59 + AllowRasterization.GetHashCode();
         return(hashCode);
     }
 }