示例#1
0
 public void printPhonebook(PhoneBook book)
 {
     try
     {
         foreach (Person person in book.getAllPerson())
         {
             printPersonDetails(person);
         }
     }
     catch (Exception ex)
     {
         Logger.Log(LoggerType.Console, "Printing phonebook Failed!", ex.StackTrace);
         Logger.Log(LoggerType.File, "Printing phonebook Failed!", ex.StackTrace);
         throw ex;
     }
 }