AnagramTreeBag.MyTest.Main C# (CSharp) Method

Main() public static method

public static Main ( String args ) : void
args String
return void
        public static void Main(String[] args)
        {
            Console.OutputEncoding = Encoding.GetEncoding("iso-8859-1");
            SCG.IEnumerable<String> ss;
            if (args.Length == 2)
                ss = ReadFileWords(args[0], int.Parse(args[1]));
            else
                ss = args;
            // foreach (String s in FirstAnagramOnly(ss))
            //   Console.WriteLine(s);
            //   Console.WriteLine("===");
            var sw = Stopwatch.StartNew();
            SCG.IEnumerable<SCG.IEnumerable<String>> classes = AnagramClasses(ss);
            int count = 0;
            foreach (SCG.IEnumerable<String> anagramClass in classes)
            {
                count++;
                // foreach (String s in anagramClass)
                //   Console.Write(s + " ");
                // Console.WriteLine();
            }
            Console.WriteLine("{0} non-trivial anagram classes", count);
            sw.Stop();
            Console.WriteLine(sw.Elapsed);
        }