public void Do()
 {
     var arguments = new[] {"/?", "--help", "-h", "/platform:x86"};
     var source = new CommandLineConfigurationSource( arguments );
     source.AddSwitch( "Default", "/?", "help", "h", "platform" );
     IConfigurationSection section = source.Sections["Default"];
     Console.WriteLine( source );
 }
示例#2
0
        public void Do()
        {
            var arguments = new[] { "/?", "--help", "-h", "/platform:x86" };
            var source    = new CommandLineConfigurationSource(arguments);

            source.AddSwitch("Default", "/?", "help", "h", "platform");
            IConfigurationSection section = source.Sections["Default"];

            Console.WriteLine(source);
        }