Esempio n. 1
0
 static void Main(string[] args)
 {
     TelephoneBook tb = new TelephoneBook();
     tb.Sort();
     tb.Display();
     tb.Filter("T");
     tb.Display();
     tb.LargerThen(4);
     tb.Display();
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            //Success met de opdracht!
            TelephoneBook book = new TelephoneBook();

            List <IPerson> lastNameBook = book.SortByLastName();

            Console.WriteLine("### Sorted by Lastname ###");
            Print(lastNameBook);

            List <IPerson> firstCharBook = book.FirstNameStartWith('B');

            Print(firstCharBook);

            List <IPerson> lengthBook = book.LastNameLongerThan(5);

            Print(lengthBook);

            List <IPerson> orderLastNameBook = book.SortByLastNameLength();

            Print(orderLastNameBook);
            Console.ReadLine();
        }
Esempio n. 3
0
 static void Main(string[] args)
 {
     TelephoneBook TB = new TelephoneBook();
     Console.ReadKey();
     //Success met de opdracht!
 }