Ejemplo 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);
        }
Ejemplo n.º 2
0
 public ArgsProcessor(ArgsActions actions)
 {
     this.actions = actions;
 }
Ejemplo n.º 3
0
 public ArgsProcessor(ArgsActions actions)
 {
     this.actions = actions;
 }