Example #1
0
        public TimeOfDay LateBound()
        {
            TimeOfDay max = null;

            foreach (Session session in ClassList)
            {
                if (TimeOfDay.ReferenceEquals(max, null) || session.EndTime > max)
                {
                    max = session.EndTime;
                }
            }
            return(max);
        }
Example #2
0
        public TimeOfDay EarlyBound()
        {
            TimeOfDay min = null;

            foreach (Session session in ClassList)
            {
                if (TimeOfDay.ReferenceEquals(min, null) || session.StartTime < min)
                {
                    min = session.StartTime;
                }
            }
            return(min);
        }