Builder Class
The builder of option schema.
C#
public sealed class Builder
- Inheritance
-
Builder
Constructors
Builder(Action<Func<string>, Option |
Initializes a new instance of the Builder class. |
Properties
Add |
Gets the action that consumes an OptionSpec object. |
Add |
Gets the action that consumes an RequiredArgumentOptionSpec object and its argument. |
Methods
Equals(object) | (Inherited from object) |
GetHashCode() | (Inherited from object) |
GetType() | (Inherited from object) |
MemberwiseClone() | (Inherited from object) |
ToString() | (Inherited from object) |
Constructors Detail
Builder(Action<Func<string>, OptionSpec>, Action<Func<string>, RequiredArgumentOptionSpec, string>)
Initializes a new instance of the Builder class.
C#
public Builder(Action<Func<string>, OptionSpec> addOption, Action<Func<string>, RequiredArgumentOptionSpec, string> addRequiredArgumentOption)
Parameters
- addOption
-
Action<Func<string>, Option
Spec >
The action that consumes an OptionSpec object.
- addRequiredArgumentOption
-
Action<Func<string>, Required
Argument , string>Option Spec
The action that consumes an RequiredArgumentOptionSpec object and its argument.
Properties Detail
AddOption
Gets the action that consumes an OptionSpec object.
C#
public Action<Func<string>, OptionSpec> AddOption { get; }
Property Value
AddRequiredArgumentOption
Gets the action that consumes an RequiredArgumentOptionSpec object and its argument.
C#
public Action<Func<string>, RequiredArgumentOptionSpec, string> AddRequiredArgumentOption { get; }