コード例 #1
0
 public BaseGenericSortingAlgorithmTest(
     IGenericSortingAlgorithm <char> charSortingAlgorithm,
     IGenericSortingAlgorithm <string> stringSortingAlgorithm,
     IGenericSortingAlgorithm <int> integerSortingAlgorithm)
     : base(new GenericToIntegerSortingAlgorithmAdapter(integerSortingAlgorithm))
 {
     _charSortingAlgorithm   = charSortingAlgorithm;
     _stringSortingAlgorithm = stringSortingAlgorithm;
 }
コード例 #2
0
 public GenericToIntegerSortingAlgorithmAdapter(IGenericSortingAlgorithm <int> algorithm)
 {
     _algorithm = algorithm;
 }