Beispiel #1
0
        static void Main(string[] args)
        {
            var sortedList = new SortedList();
            sortedList.Add("John Doe");
            sortedList.Add("Tommy Toe");
            sortedList.Add("John Smith");

            sortedList.SetSortStrategy(new QuickSort());
            sortedList.Sort();

            Console.WriteLine(sortedList);

            Console.ReadLine();
        }