OptionImpl Class

The default implementation of Option interface.

C#
public sealed class OptionImpl : AbstractOption, Option
Inheritance
OptionImpl
Implements

Constructors

OptionImpl(Func<string>, OptionSpec, OptionSchema)

Initializes a new instance of the OptionImpl class.

Properties

Methods

ToString()

Gets the string representing this option, which is actually specified with the command line.

(Inherited from AbstractOption)
Equals(object) (Inherited from object)
GetHashCode() (Inherited from object)
GetType() (Inherited from object)
MemberwiseClone() (Inherited from object)

Constructors Detail

OptionImpl(Func<string>, OptionSpec, OptionSchema)

Initializes a new instance of the OptionImpl class.

C#
public OptionImpl(Func<string> supplier, OptionSpec spec, OptionSchema schema)

Parameters

supplier
Func<string>

The function returns the string representing this option, which is actually specified with the command line.

spec
OptionSpec

The specification of the option.

schema
OptionSchema

The schema of the option.

See Also

Properties Detail

Name

C#
public string Name { get; }

Property Value

Implements

ShortName

C#
public char? ShortName { get; }

Property Value

Implements

Description

C#
public string Description { get; }

Property Value

Implements

Schema

C#
public OptionSchema Schema { get; }

Property Value

Implements