Exemplo n.º 1
0
 public static ArgumentsRule Forward(
     this ArgumentsRule rule) =>
 rule.MaterializeAs(o => new ForwardedArgument(o.Arguments.SingleOrDefault()));
Exemplo n.º 2
0
 public static ArgumentsRule ForwardAsSingle(
     this ArgumentsRule rule,
     Func <AppliedOption, string> format) =>
 rule.MaterializeAs(o =>
                    new ForwardedArgument(format(o)));
Exemplo n.º 3
0
 public static ArgumentsRule ForwardAsMany(
     this ArgumentsRule rule,
     Func <AppliedOption, IEnumerable <string> > format) =>
 rule.MaterializeAs(o =>
                    new ForwardedArgument(format(o).ToArray()));
Exemplo n.º 4
0
 public static ArgumentsRule ForwardAs(
     this ArgumentsRule rule,
     string value) =>
 rule.MaterializeAs(o => new ForwardedArgument(value));