Exemplo n.º 1
0
 static void Main(string[] args)
 {
     Random r = new Random();
     int[] m = new int[10];
     for (int i = 0; i < m.Length; i++)
     {
         m[i] = r.Next(100);
     }
     Sorter<int> sort = new Sorter<int>();
     sort.SetComparer(new ComparerInt());
     sort.Sort(m);
     for (int i = 0; i < m.Length; i++)
     {
         Console.WriteLine(m[i]);
     }
     Console.ReadLine();
 }