try { newStudent = new Student(); newStudent.StudentName = "James007"; ValidateStudent(newStudent); } catch(InvalidStudentNameException ex) { Console.WriteLine(ex.Message ); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)