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

            return
                ((
                     ArchivingEnabled == other.ArchivingEnabled ||
                     ArchivingEnabled != null &&
                     ArchivingEnabled.Equals(other.ArchivingEnabled)
                     ) &&
                 (
                     SchedulerExpression == other.SchedulerExpression ||
                     SchedulerExpression != null &&
                     SchedulerExpression.Equals(other.SchedulerExpression)
                 ) &&
                 (
                     ArchiveSinceDaysCompleted == other.ArchiveSinceDaysCompleted ||
                     ArchiveSinceDaysCompleted != null &&
                     ArchiveSinceDaysCompleted.Equals(other.ArchiveSinceDaysCompleted)
                 ));
        }
Ejemplo n.º 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 (ArchivingEnabled != null)
         {
             hashCode = hashCode * 59 + ArchivingEnabled.GetHashCode();
         }
         if (SchedulerExpression != null)
         {
             hashCode = hashCode * 59 + SchedulerExpression.GetHashCode();
         }
         if (ArchiveSinceDaysCompleted != null)
         {
             hashCode = hashCode * 59 + ArchiveSinceDaysCompleted.GetHashCode();
         }
         return(hashCode);
     }
 }