Simple |
The SimpleParse type exposes the following members.
Name | Description | |
---|---|---|
GetPositional | Gets a positional argument at a specified index. Null is returned if there is no positional argument at the index. | |
GetPositionalInt | Gets a positional argument at a specified index converted to an Int32. Null is returned if there is no positional argument at the index or the value cannot be converted to an Int32. | |
GetSwitch | Gets the first value of a switch argument in the format /name value. Null is returned if the switch is not specified or it has no values. | |
GetSwitchData | Gets a reference to a Switch class instance containing full information about a switch. Null is returned if the switch is not found. This is the only way to get the Parity of a switch. | |
GetSwitchDouble | Gets the first value of a switch argument in the format /name value converted to a Double. Null is returned if the switch is not specified or it has no values or the first value cannot be converted to a Double. | |
GetSwitchInt | Gets the first value of a switch argument in the format /name value converted to an Int32. Null is returned if the switch is not specified or it has no values or the first value cannot be converted to an Int32. | |
GetSwitchValue | Gets a switch argument value in the format /name value1 value2 at a specified index. Null is returned if the switch is not specified or there is no value at the specified index. | |
GetSwitchValueInt | Gets a switch argument value in the format /name value1 value2 at a specified index converted to an Int32. Null is returned if the switch is not specified or there is no value at the specified index or it cannot be converted to an Int32. | |
GetSwitchValues | Gets all switch argument values as a string array. The return value will be null if the switch is not specified. The returned array may be zero-length if there are no values. | |
HasSwitch | Gets a flag indicating if a simple switch argument in the format /name is specified or not. | |
Parse | A static factory method that performs simple parsing of an argument array and returns an instance of the SimpleParse class containing the parsing results. |