/// <summary>
 ///
 /// </summary>
 /// <param name="numberofInput">The number of elements that needs to be sorted</param>
 /// <param name="algorithmName">The name of the algorithm we want to use</param>
 public IntegerSorter(int numberofInput, string algorithmName) : base(numberofInput)
 {
     _myIntegerarray          = new int[NumberofInput];
     _integerSortingAlgorithm = AlgorithmFactory <int> .GetSortingAlgorithm(algorithmName);
 }
Example #2
0
 public StringSorter(int numberofInput, string algorithmName) : base(numberofInput)
 {
     _myStringArray = new string[NumberofInput];
     _stringSortingAlgorithm = AlgorithmFactory<string>.GetSortingAlgorithm(algorithmName);
 }