static void SelectionSortExample01() { var items = new List <int>(); for (var i = 0; i < 20; i++) { items.Add(_random.Next(1, 1000)); } Console.WriteLine($"Original: {string.Join(", ", items)}"); var result = SelectionSort.OrderByAscending(items); Console.WriteLine($"OrderByAscending: {string.Join(", ", result)}"); Console.WriteLine(); }
static void SelectionSortExample03() { var items = new List <Guid>(); for (var i = 0; i < 20; i++) { items.Add(Guid.NewGuid()); } Console.WriteLine($"Original:\r\n{string.Join("\r\n", items)}"); Console.WriteLine(); var result = SelectionSort.OrderByAscending(items); Console.WriteLine($"OrderByAscending:\r\n{string.Join("\r\n", result)}"); Console.WriteLine(); }