/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns> /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. /// </returns> public override int GetHashCode( ) { int hashCode = ByDay.GetHashCode( ) ^ ByHour.GetHashCode( ) ^ ByMinute.GetHashCode( ) ^ ByMonth.GetHashCode( ) ^ ByMonthDay.GetHashCode( ) ^ BySecond.GetHashCode( ) ^ BySetPosition.GetHashCode( ) ^ ByWeekNo.GetHashCode( ) ^ ByYearDay.GetHashCode( ) ^ Count.GetHashCode( ) ^ Frequency.GetHashCode( ); if (Interval.Equals(1)) { hashCode ^= 0x1; } else { hashCode ^= Interval.GetHashCode( ); } hashCode ^= Until.GetHashCode( ); hashCode ^= FirstDayOfWeek.GetHashCode( ); return(hashCode); }