Exemple #1
0
 public override void Call(ParseResult parseResult, object values, string optionString)
 {
     var newValues =
         parseResult.Get<IEnumerable>(Destination, new object[] {})
             .Cast<object>()
             .Concat(new[] {values})
             .ToArray();
     parseResult[Destination] = newValues;
 }
Exemple #2
0
 public override void Call(ParseResult parseResult, object values, string optionString)
 {
     parseResult[Destination] = parseResult.Get(Destination, 0) + 1;
 }