Class SequenceOption
Helps build sequence options.
public static class SequenceOption
- Inheritance
-
SequenceOption
- Inherited Members
Methods
CreateInt32Option(OptionForm)
Creates a 32-bit integer--sequence option that takes a single form.
public static SequenceOption<int> CreateInt32Option(OptionForm form)
Parameters
formOptionFormThe 32-bit integer--sequence option's form.
Returns
- SequenceOption<int>
A 32-bit integer--sequence option.
CreateInt32Option(IReadOnlyList<OptionForm>)
Creates a 32-bit integer--sequence option that takes a list of forms.
public static SequenceOption<int> CreateInt32Option(IReadOnlyList<OptionForm> forms)
Parameters
formsIReadOnlyList<OptionForm>The 32-bit integer--sequence option's forms.
Returns
- SequenceOption<int>
A 32-bit integer--sequence option.
CreateOption<T>(OptionForm, Func<OptionForm, string, ILog, T>)
Creates a typed sequence option that takes a single form.
public static SequenceOption<T> CreateOption<T>(OptionForm form, Func<OptionForm, string, ILog, T> parseArgument)
Parameters
formOptionFormThe option's form.
parseArgumentFunc<OptionForm, string, ILog, T>A function that parses each argument.
Returns
- SequenceOption<T>
A typed sequence option.
Type Parameters
TThe parsed element type.
CreateOption<T>(IReadOnlyList<OptionForm>, Func<OptionForm, string, ILog, T>)
Creates a typed sequence option that takes a list of forms.
public static SequenceOption<T> CreateOption<T>(IReadOnlyList<OptionForm> forms, Func<OptionForm, string, ILog, T> parseArgument)
Parameters
formsIReadOnlyList<OptionForm>The option's forms.
parseArgumentFunc<OptionForm, string, ILog, T>A function that parses each argument.
Returns
- SequenceOption<T>
A typed sequence option.
Type Parameters
TThe parsed element type.
CreateStringOption(OptionForm)
Creates a string-sequence option that takes a single form.
public static SequenceOption<string> CreateStringOption(OptionForm form)
Parameters
formOptionFormThe string-sequence option's form.
Returns
- SequenceOption<string>
A string-sequence option.
CreateStringOption(IReadOnlyList<OptionForm>)
Creates a string-sequence option that takes a list of forms.
public static SequenceOption<string> CreateStringOption(IReadOnlyList<OptionForm> forms)
Parameters
formsIReadOnlyList<OptionForm>The string-sequence option's forms.
Returns
- SequenceOption<string>
A string-sequence option.