コード例 #1
0
 public Student[] GetEnrollStudents()
 {
     StudentDatabase sd = new StudentDatabase();
     List<string> students = new List<string>();
     students = sd.GetStudents();
     Student[] studentArray = new Student[students.Count];
     for (int i = 0; i < students.Count; i++)
     {
         Student s = new Student();
         s.Name = students[i];
         studentArray[i] = s;
     }
     return studentArray;
 }
コード例 #2
0
 public void EnrollStudent(Student student)
 {
     StudentDatabase sd = new StudentDatabase();
     sd.AddStudent(student.Name);
 }