private static void SortString(IStringSorter sorter) { Console.WriteLine("Input the string that requires sorting, then press enter."); string unsortedString = Console.ReadLine(); string sortedString = sorter.SortString(unsortedString); Console.WriteLine("The result of the sorting is:"); Console.WriteLine(sortedString); }
public ConsoleLoggingDecorator(IStringSorter decorated) { this.decorated = decorated; }