示例#1
0
        static void Main(string[] args)
        {
            var a = new string[] { "a", "b" };
            var b = new string[] { "abacaba", "foobarbaz" };
            var c = new string[] { "cbaaaa", "rgbbgr" };

            var concat = new ConcatStrings();

            ShowConsoleResults(concat, a, b, c);

            ReadKey();
        }
示例#2
0
 private static void ShowConsoleResults(ConcatStrings concat, params string[][] arrays)
 {
     for (int i = 0; i < arrays.Length; i++)
     {
         FormatedWriteLine(
             arrays[i][0],
             arrays[i][1],
             concat.SortByAlphabetWithoutRepeated(
                 arrays[i][0],
                 arrays[i][1]));
     }
 }