Example #1
0
        static void Main(string[] args)
        {
            int[] numbers = HelperFunctions.GenerateIntegers(100);

            Console.WriteLine("unsorted: " + String.Join(",", numbers));
            SelectionSort.Sort(numbers);
            Console.WriteLine("sorted: " + String.Join(",", numbers));
            Console.WriteLine("*********************************************************");

            numbers = HelperFunctions.GenerateIntegers(100);

            Console.WriteLine("unsorted: " + String.Join(",", numbers));
            GenericSelectionSort <int> .Sort(numbers);

            Console.WriteLine("sorted: " + String.Join(",", numbers));

#if RELEASE
            BenchmarkRunner.Run <SelectionSortBenchmark>();
#endif
        }
        public void GenericSortArray()
        {
            var numbers = HelperFunctions.GenerateIntegers(100);

            GenericSelectionSort <int> .Sort(numbers);
        }