Exemple #1
0
 static public void SortByFhone(PhoneBook book)
 {
     ListSort.Sort(book, (client1, client2)
                   => client1.foneNumber > client2.foneNumber);
 }
Exemple #2
0
 static public void SortByadress(PhoneBook book)
 {
     ListSort.Sort(book, (client1, client2) => string.Compare(client1.adress, client2.adress) < 0);
 }
Exemple #3
0
 static public void SortByLastName(PhoneBook book)
 {
     ListSort.Sort(book, (client1, client2) => string.Compare(client1.lastName, client2.lastName) < 0);
 }