Example #1
0
        /// <summary>
        /// Compares two regular hours objects for equality.
        /// </summary>
        /// <param name="RegularHours">A regular hours object to compare with.</param>
        /// <returns>True if both match; False otherwise.</returns>
        public Boolean Equals(RegularHours RegularHours)
        {
            if ((Object)RegularHours == null)
            {
                return(false);
            }

            return(DayOfWeek.Equals(RegularHours.DayOfWeek) &&
                   PeriodBegin.Equals(RegularHours.PeriodBegin) &&
                   PeriodEnd.Equals(RegularHours.PeriodEnd));
        }