Esempio n. 1
0
        public bool Equals(WeeklyCalendar obj)
        {
            if (obj == null)
            {
                return(false);
            }
            bool baseEqual = GetBaseCalendar() == null || GetBaseCalendar().Equals(obj.GetBaseCalendar());

            return(baseEqual && (ArraysEqualElementsOnEqualPlaces(obj.DaysExcluded, DaysExcluded)));
        }
Esempio n. 2
0
        public bool Equals(WeeklyCalendar obj)
        {
            if (obj == null)
            {
                return(false);
            }
            bool baseEqual = GetBaseCalendar() == null || GetBaseCalendar().Equals(obj.GetBaseCalendar());

            return(baseEqual && obj.DaysExcluded.SequenceEqual(DaysExcluded));
        }
Esempio n. 3
0
        public bool Equals(WeeklyCalendar obj)
        {
            if (obj == null)
                return false;
            bool baseEqual = GetBaseCalendar() != null ?
                             GetBaseCalendar().Equals(obj.GetBaseCalendar()) : true;

            return baseEqual && (ArraysEqualElementsOnEqualPlaces(obj.DaysExcluded,DaysExcluded));
        }