new Personne("Tremblay", "Bill"),
new Personne("Nguyen", "Kim"),
new Personne("Popovic", "Peter"),
new Personne("Tremblay", "Anne"),
new Personne("Nguyen", "Zénon")
static void Afficher(Personne [] population)
for (int i = 0; i != population.Length; ++i)
Console.Write($"{population[i].Nom}, {population[i].Prénom} ; ");
static int OrdreLexicographique(Personne p0, Personne p1)
int résultat = string.Compare(p0.Nom, p1.Nom);
résultat = string.Compare(p0.Prénom, p1.Prénom);
static void TestTri(Personne[] tab)
Console.Write("Avant : ");
Array.Sort(tab, OrdreLexicographique);
Console.Write("Après : ");
public string Prénom { get; }
public string Nom { get; }
public Personne(string nom, string prénom)