Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var commandLine = string.Join(" ", args);
            var engine      = new Engine
                              (
                typeof(Ascii),
                typeof(Color),
                typeof(QuickInfo.DateTime),
                typeof(Emoticons),
                typeof(Factor),
                typeof(Hex),
                typeof(HResult),
                typeof(Roman),
                typeof(HttpStatusCode),
                typeof(QuickInfo.Math),
                typeof(NTStatusError),
                typeof(NumberList),
                typeof(RandomGuid),
                typeof(Unicode),
                typeof(UnitConverter),
                typeof(UrlDecode),
                typeof(Win32Error)
                              );
            var  query   = new Query(commandLine);
            var  answers = engine.GetResults(query);
            bool first   = true;

            foreach (var answer in answers)
            {
                if (first)
                {
                    first = false;
                }
                else
                {
                    Console.WriteLine();
                }

                ConsoleRenderer.RenderObject(answer.processorName, answer.resultNode);
            }
        }