예제 #1
0
파일: Exam.cs 프로젝트: ziro7/CSharp
        public void RemoveStudentFromExam(String studentName)
        {
            var studentToRemove = StudentsEligableForExam.Find(x => x.Name == studentName);

            StudentsEligableForExam.Remove(studentToRemove);
            Console.WriteLine("removed: " + studentName + " from the exam");
        }
예제 #2
0
파일: Exam.cs 프로젝트: ziro7/CSharp
 public void AddStudentToExam(Student student)
 {
     StudentsEligableForExam.Add(student);
     Console.WriteLine("Added: " + student.Name + " to the exam");
 }