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

            return
                ((
                     LargeFileMin == other.LargeFileMin ||
                     LargeFileMin != null &&
                     LargeFileMin.Equals(other.LargeFileMin)
                     ) &&
                 (
                     CacheApply == other.CacheApply ||
                     CacheApply != null &&
                     CacheApply.Equals(other.CacheApply)
                 ) &&
                 (
                     MimeTypes == other.MimeTypes ||
                     MimeTypes != null &&
                     MimeTypes.Equals(other.MimeTypes)
                 ));
        }
Beispiel #2
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 (LargeFileMin != null)
         {
             hashCode = hashCode * 59 + LargeFileMin.GetHashCode();
         }
         if (CacheApply != null)
         {
             hashCode = hashCode * 59 + CacheApply.GetHashCode();
         }
         if (MimeTypes != null)
         {
             hashCode = hashCode * 59 + MimeTypes.GetHashCode();
         }
         return(hashCode);
     }
 }