Builder Class

The builder of option schema.

C#
public sealed class Builder
Inheritance
Builder

Constructors

Properties

AddOption

Gets the action that consumes an OptionSpec object.

AddRequiredArgumentOption

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>, OptionSpec>

The action that consumes an OptionSpec object.

addRequiredArgumentOption
Action<Func<string>, RequiredArgumentOptionSpec, string>

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; }

Property Value