Beispiel #1
0
        public void AddStudents(Student[] students)
        {
            if (MAX_STUDENT < students.Count())
            {
                throw new ArgumentOutOfRangeException(string.Format("Students in a {0} should be less than {1}!", nameOfCourse, MAX_STUDENT));
            }

            for (int i = 0; i < students.Count(); i++)
            {
                studentsList.Add(students[i]);
            }
        }