예제 #1
0
 public Enroll[] ListOfEnrollments()
 {
     Enroll[] enroll = new Enroll[En.Count()];
     foreach (var e in En)
     {
         int j = 0;
         enroll[j] = e;
         j++;
     }
     return(enroll);
 }
예제 #2
0
        public static void DisplayEnrollments(Enroll enroll)
        {
            AppEngine appEngine = new AppEngine();

            Console.WriteLine("List of enrollments are {0}", appEngine.ListOfEnrollments());
        }
예제 #3
0
        public void Enroll(Student student, Course course)
        {
            Enroll enroll = new Enroll(student, course);

            En.Add(enroll);
        }