コード例 #1
0
ファイル: School.cs プロジェクト: nedevny/TelerikAkademy
        public void LeaveStudentFromCourse(Student student, Course course)
        {
            if (student == null)
            {
                throw new ArgumentNullException("student cannot be null");
            }

            if (course == null)
            {
                throw new ArgumentNullException("course cannot be null");
            }
            course.Leave(student);
        }
コード例 #2
0
ファイル: School.cs プロジェクト: smihaylovit/TelerikAkademy
        public void LeaveStudentFromCourse(Student student, Course course)
        {
            if (student == null)
            {
                throw new ArgumentNullException("student cannot be null");
            }

            if (course == null)
            {
                throw new ArgumentNullException("course cannot be null");
            }
            course.Leave(student);
        }