コード例 #1
0
 public static CommandOption Map<TOptions, TResult>(this CommandOption option, MapOptions<TOptions> map,
     Expression<Func<TOptions, TResult>> to)
 {
     map.Add(option, to);
     return option;
 }
コード例 #2
0
 public static CommandArgument Map<TOptions, TResult>(this CommandArgument arg, MapOptions<TOptions> map,
     Expression<Func<TOptions, TResult>> to)
 {
     map.Add(arg, to);
     return arg;
 }