コード例 #1
0
 public Course(string code, string name, int ects, int hours, CourseType type, int semester, AvailableCourseStreams streams, CourseProfessors courseProfessors)
 {
     Code     = code;
     Name     = name;
     ECTS     = ects;
     Hours    = hours;
     Type     = type;
     Semester = semester;
     AvailableCourseStreams = streams;
     CourseProfessors       = courseProfessors;
 }
コード例 #2
0
 // Too long constructor, innit
 public Course(string code, string name, int ects, int hours, CourseType type, int semester, AvailableCourseStreams streams, string professor1, string professor2)
     : this(code, name, ects, hours, type, semester, streams, new CourseProfessors(professor1, professor2))
 {
 }