コード例 #1
0
        // Returns TRUE if another class has one or overlapping student groups.

        // Returns TRUE if another class has one or overlapping student groups.
        //C++ TO C# CONVERTER WARNING: 'const' methods are not available in C#:
        //ORIGINAL LINE: bool GroupsOverlap(const CourseClass& c) const
        public bool GroupsOverlap(CourseClass c)
        {
            for (LinkedList <Curriculum> .Enumerator it1 = _groups.GetEnumerator(); it1.MoveNext();)
            {
                for (LinkedList <Curriculum> .Enumerator it2 = c._groups.GetEnumerator(); it2.MoveNext();)
                {
                    if (it1.Current == it2.Current)
                    {
                        return(true);
                    }
                }
            }

            return(false);
        }
コード例 #2
0
 public bool InstructorOverlaps(CourseClass c)
 {
     return(_instructor == c._instructor);
 }
コード例 #3
0
 // Bind Instructor to course
 public void AddCourseClass(CourseClass courseClass)
 {
     _courseClasses.AddLast(courseClass);
 }