Example #1
0
        static void Scenario5()
        {
            ISettings         settings = new SettingsExample1();
            CommandLineParser parser   = new CommandLineParser(settings);

            parser.ParseSettings();
            //The 'settings' object is now populated.
        }
Example #2
0
 static void Scenario6()
 {
     CommandLineParser parser   = new CommandLineParser(typeof(SettingsExample1));
     SettingsExample1  settings = parser.ParseSettings() as SettingsExample1;
     //The 'settings' object is now populated.
 }