private void ListContacts() { Console.WriteLine("List Contacts."); Contact[] contacts = directory.GetAll(); if (contacts == null || contacts.Length == 0) { Console.WriteLine("No Contact Found."); } else { for (int i = 0; i < contacts.Length; i++) { Contact c = contacts[i]; Console.WriteLine(c.GetFullName()); Console.WriteLine(c.Phone); Console.WriteLine(c.Email); Console.WriteLine("===================="); } } }