Пример #1
0
 protected ArgumentRuleDecorator(ArgumentRule argument)
 {
     if (argument == null)
     {
         throw new ArgumentNullException(nameof(argument));
     }
     Argument = argument;
 }
Пример #2
0
 public TypedArgument(ArgumentRule argument, Type type,
                      params string[] aliases)
     : base(argument)
 {
     if (type == null)
     {
         throw new ArgumentNullException(nameof(type));
     }
     _type    = type;
     _aliases = aliases;
 }
Пример #3
0
 public OptionalArgument(ArgumentRule argument)
     : base(argument)
 {
 }