Ouais langage de M$ évolution du C ^^
Petit exemple:
public static void tri(ref string[] tn, ref int[] tp, ref int nb, StreamWriter sw)
{
int choix;
Console.WriteLine("1/Ordre Croissant.\n2/Ordre décroissant.");
choix = Int16.Parse(Console.ReadLine());
if (choix == 1)
{
tri_croissant(ref tn, ref tp, ref nb);
}
else
{
tri_decroissant(ref tn, ref tp, ref nb);
}
liste_editer(ref tn, ref tp, sw, nb);
}