static void Main(string[] args) { Arguments arguments = new Arguments(args); Action a = null; switch (arguments.Action) { case "config": a = new Config(); break; case "counters": a = new Counters(); break; } if (a != null) { a.Execute(arguments); } }
static Config() { instance = Configuration.LoadConfigurationFile<Config>("ModulesConfig.xml"); }