public Enroll[] ListOfEnrollments() { Enroll[] enroll = new Enroll[En.Count()]; foreach (var e in En) { int j = 0; enroll[j] = e; j++; } return(enroll); }
public static void DisplayEnrollments(Enroll enroll) { AppEngine appEngine = new AppEngine(); Console.WriteLine("List of enrollments are {0}", appEngine.ListOfEnrollments()); }
public void Enroll(Student student, Course course) { Enroll enroll = new Enroll(student, course); En.Add(enroll); }