I have a console application called MyTool.exe
What is the simplest way to collect the named arguments passed to this console applicaiton and then to put them in a
I don't see why this code is bad? hova?
var arguments = new Dictionary(); foreach (var item in Environment.GetCommandLineArgs()) { try { var parts = item.Split('='); arguments.Add(parts[0], parts[1]); } catch (Exception ex) { // your error handling here.... }