Documentation for the C# command-line option parsing library

OptionDefinition Members

OptionDefinition overview

Public Static Methods

CreateDefinitions Helper method to create OptionDefinition instances for each string in definitions

Public Instance Constructors

OptionDefinition Overloaded. Initializes a new instance of the OptionDefinition class.

Public Instance Properties

Category Get or set the category of the option
DefaultValue Default value of the option
Description Get the user-friendly description of this option
ID Get the ID for this option
LongNames Get the long names for this option
ShortNames Get the short names for this option
Type Get the type of value the option takes
ValueType Get the type of value that the option supports (if values are supported)

Public Instance Methods

ConvertValue Try to convert a given value to the value that this option supports
Equals See Equals
GetHashCode See GetHashCode
GetType (inherited from Object) Gets the Type of the current instance.
ToString Produce a string version of this variable

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

OptionDefinition Class | CommandLine.OptParse Namespace