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(HttpStatusCode), typeof(QuickInfo.Math), typeof(NumberList), typeof(RandomGuid), typeof(UnitConverter), typeof(UrlDecode) ); var query = new Query(commandLine); var answers = engine.GetResults(query); foreach (var answer in answers) { ConsoleRenderer.RenderObject(answer.processorName, answer.resultNode); } }
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); } }