Esempio n. 1
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (TotalWidth != null)
         {
             hashCode = hashCode * 59 + TotalWidth.GetHashCode();
         }
         if (ColWidthName != null)
         {
             hashCode = hashCode * 59 + ColWidthName.GetHashCode();
         }
         if (ColWidthResult != null)
         {
             hashCode = hashCode * 59 + ColWidthResult.GetHashCode();
         }
         if (ColWidthTiming != null)
         {
             hashCode = hashCode * 59 + ColWidthTiming.GetHashCode();
         }
         return(hashCode);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Returns true if OrgApacheSlingHcCoreImplServletResultTxtVerboseSerializerProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheSlingHcCoreImplServletResultTxtVerboseSerializerProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheSlingHcCoreImplServletResultTxtVerboseSerializerProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     TotalWidth == other.TotalWidth ||
                     TotalWidth != null &&
                     TotalWidth.Equals(other.TotalWidth)
                     ) &&
                 (
                     ColWidthName == other.ColWidthName ||
                     ColWidthName != null &&
                     ColWidthName.Equals(other.ColWidthName)
                 ) &&
                 (
                     ColWidthResult == other.ColWidthResult ||
                     ColWidthResult != null &&
                     ColWidthResult.Equals(other.ColWidthResult)
                 ) &&
                 (
                     ColWidthTiming == other.ColWidthTiming ||
                     ColWidthTiming != null &&
                     ColWidthTiming.Equals(other.ColWidthTiming)
                 ));
        }