static void Main(string[] args) { SortedList sortList = new SortedList(); sortList.Add("A"); sortList.Add("B"); sortList.Add("V"); sortList.Add("S"); sortList.SetStrategy(new ShellSort()); sortList.Sort(); sortList.Display(); Console.ReadKey(); }
static void Main(string[] args) { SortedList sortList = new SortedList(); sortList.Add("A"); sortList.Add("B"); sortList.Add("V"); sortList.Add("S"); sortList.SetStrategy(new ShellSort()); sortList.Sort(); sortList.Display(); Console.ReadKey(); }