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

            return 
                (
                    VersionmanagerCreateVersionOnActivation == other.VersionmanagerCreateVersionOnActivation ||
                    VersionmanagerCreateVersionOnActivation != null &&
                    VersionmanagerCreateVersionOnActivation.Equals(other.VersionmanagerCreateVersionOnActivation)
                ) && 
                (
                    VersionmanagerPurgingEnabled == other.VersionmanagerPurgingEnabled ||
                    VersionmanagerPurgingEnabled != null &&
                    VersionmanagerPurgingEnabled.Equals(other.VersionmanagerPurgingEnabled)
                ) && 
                (
                    VersionmanagerPurgePaths == other.VersionmanagerPurgePaths ||
                    VersionmanagerPurgePaths != null &&
                    VersionmanagerPurgePaths.Equals(other.VersionmanagerPurgePaths)
                ) && 
                (
                    VersionmanagerIvPaths == other.VersionmanagerIvPaths ||
                    VersionmanagerIvPaths != null &&
                    VersionmanagerIvPaths.Equals(other.VersionmanagerIvPaths)
                ) && 
                (
                    VersionmanagerMaxAgeDays == other.VersionmanagerMaxAgeDays ||
                    VersionmanagerMaxAgeDays != null &&
                    VersionmanagerMaxAgeDays.Equals(other.VersionmanagerMaxAgeDays)
                ) && 
                (
                    VersionmanagerMaxNumberVersions == other.VersionmanagerMaxNumberVersions ||
                    VersionmanagerMaxNumberVersions != null &&
                    VersionmanagerMaxNumberVersions.Equals(other.VersionmanagerMaxNumberVersions)
                ) && 
                (
                    VersionmanagerMinNumberVersions == other.VersionmanagerMinNumberVersions ||
                    VersionmanagerMinNumberVersions != null &&
                    VersionmanagerMinNumberVersions.Equals(other.VersionmanagerMinNumberVersions)
                );
        }
Пример #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 (VersionmanagerCreateVersionOnActivation != null)
             hashCode = hashCode * 59 + VersionmanagerCreateVersionOnActivation.GetHashCode();
             if (VersionmanagerPurgingEnabled != null)
             hashCode = hashCode * 59 + VersionmanagerPurgingEnabled.GetHashCode();
             if (VersionmanagerPurgePaths != null)
             hashCode = hashCode * 59 + VersionmanagerPurgePaths.GetHashCode();
             if (VersionmanagerIvPaths != null)
             hashCode = hashCode * 59 + VersionmanagerIvPaths.GetHashCode();
             if (VersionmanagerMaxAgeDays != null)
             hashCode = hashCode * 59 + VersionmanagerMaxAgeDays.GetHashCode();
             if (VersionmanagerMaxNumberVersions != null)
             hashCode = hashCode * 59 + VersionmanagerMaxNumberVersions.GetHashCode();
             if (VersionmanagerMinNumberVersions != null)
             hashCode = hashCode * 59 + VersionmanagerMinNumberVersions.GetHashCode();
         return hashCode;
     }
 }