Пример #1
0
 //this method invokes the ToString and WriteToFile methods of the provided object
 public static void DisplayEmployeeInformation(Employee theEmployee)
 {
     Console.WriteLine("\n*************" + theEmployee.EmployeeName + "*************\n");
     Console.WriteLine(theEmployee.ToString());
     theEmployee.WriteToFile();
 }