OptionImpl Class
The default implementation of Option interface.
C#
public sealed class OptionImpl : AbstractOption, Option
- Inheritance
- Implements
Constructors
Option |
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 Abstract |
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
The function returns the string representing this option, which is actually specified with the command line.
- spec
-
Option
Spec
The specification of the option.
- schema
-
Option
Schema
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; }