Exemplo n.º 1
0
        private static void SampleTwo(string[] args)
        {
            var argThings = new ArgsActions();
            argThings.SetOption("-a", () => Console.WriteLine("-a option selected"));
            argThings.SetOption("-e", () => Console.WriteLine("-e option selected"));

            var processor = new ArgsProcessor(argThings);
            processor.Process(args);
        }
Exemplo n.º 2
0
 public ArgsProcessor(ArgsActions actions)
 {
     this.actions = actions;
 }
Exemplo n.º 3
0
 public ArgsProcessor(ArgsActions actions)
 {
     this.actions = actions;
 }