Beispiel #1
0
 public object this[Argument key]
 {
     get
     {
         object result;
         _processed.TryGetValue(key, out result);
         return result;
     }
 }
Beispiel #2
0
        public ArgumentConfigurator Handle(params string[] aliases)
        {
            var current = aliases.Select(ArgumentConfiguration).FirstOrDefault(v => v != null);
            if (current != null) return new ArgumentConfigurator(current, this);

            var arg = new Argument();
            var cfg = new ArgumentConfigurator(arg, this);
            Arguments.Add(arg);
            foreach (var value in aliases) cfg.Alias(value);
            return cfg;
        }