예제 #1
0
 private Option <string> QueryValueFromUser(IUserInputDescription variable)
 => ValidatedUserInput.GetValidatedValue(variable, RequesterValidations(variable));
예제 #2
0
 private Option <double> QueryValueFromUser(IUserInputDescription variable)
 => ValidatedUserInput
 .GetValidatedValue(variable, RequesterValidations(variable))
 .SelectMany(ToDouble);
 private Option <string> QueryValueFromUser(IUserInputDescription variable)
 => ValidatedUserInput.GetValidatedValue(variable, Enumerable.Empty <IValidation>());
 private Option <string> QueryValueFromUser(IUserInputDescription variable)
 => ValidatedUserInput
 .GetValidatedValue(variable, RequesterValidations(variable))
 .SelectMany(input => IndexToValue(input, variable));