示例#1
0
        /// <summary>
        /// Indicates whether the current object is equal to another object of type <see cref="PeriodicSchedule"/>.
        /// </summary>
        /// <param name="other">An object to compare with this object.</param>
        /// <returns>
        /// true if the current object is equal to the <paramref name="other" /> parameter; otherwise, false.
        /// </returns>
        public bool Equals(PeriodicSchedule other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(Options == other.Options &&
                   Day == other.Day &&
                   FirstDayOfWeek == other.FirstDayOfWeek &&
                   Hour == other.Hour &&
                   Minute == other.Minute &&
                   Month == other.Month &&
                   Second == other.Second &&
                   Week == other.Week &&
                   WeekDay == other.WeekDay &&
                   MinimumGap.Equals(other.MinimumGap) &&
                   string.Equals(Name, other.Name) &&
                   CalendarSystem.Equals(other.CalendarSystem) &&
                   DateTimeZone.Equals(other.DateTimeZone));
        }