public object[] FormatParametersFor(ExecutableMethodInfo method) { if (method == null) { return new object[] { } } ; var methodParametersType = method.Parameters.Select(p => p.Type).ToList(); return(( method.IsAcceptOptions && !HasOptions ? ParametersWithOption : Parameters ).Select((param, i) => param.Value is IConvertible ? Convert.ChangeType(param.Value, methodParametersType[i]) : param.Value ).ToArray()); } }
public MultipleOptionsDefinitionException(ExecutableMethodInfo method) { Method = method; }
public ExecutableMethodParameterOrderException(ExecutableMethodInfo method) { Method = method; }
public UndefinedCommandOptionsException(ExecutableMethodInfo method) { Method = method; }