You are on page 1of 1

public delegate int Delega1();

public void Display()


{
Delega1 d = new Delega1(CountSociete);
if (d() == 0)
{
throw new SocieteExecption("Erreur: La list est vide !!!");
}
else
{
foreach (Personne p in soc)
{
Console.WriteLine(p);
}
}
}

public int CountSociete()


{
return this.soc.Count;
}

You might also like