Exemplo n.º 1
0
Arquivo: Exam.cs Projeto: 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");
        }
Exemplo n.º 2
0
Arquivo: Exam.cs Projeto: ziro7/CSharp
 public void AddStudentToExam(Student student)
 {
     StudentsEligableForExam.Add(student);
     Console.WriteLine("Added: " + student.Name + " to the exam");
 }