Method | Description | |
---|---|---|
AddSwitch ( string sectionName ) : void |
Adds the switch to match against the arguments mapping each switch.
|
|
AddSwitch ( string sectionName, IEnumerable |
Adds the switch to match against the arguments mapping each switch.
|
|
AddSwitch ( string sectionName, string longName, string shortName ) : void |
Adds the switch to match against the arguments mapping the short name value to the long name (and short name) keys if possible.
|
|
CommandLineConfigurationSource ( string args ) : System |
Initializes a new instance of the
|
|
CommandLineConfigurationSource ( string args, string sectionName ) : System |
Initializes a new instance of the
|
|
CommandLineConfigurationSource ( string args, string sectionName, IEnumerable |
Initializes a new instance of the
|
|
Exists ( string switchName ) : bool |
Determins whether the specified switch name has a corresponding value in a section.
|
|
Reload ( ) : void |
Reloads this instance.
|
|
Save ( ) : void |
Saves this instance.
|
Method | Description | |
---|---|---|
Extract ( IEnumerable |
public AddSwitch ( string sectionName ) : void | ||
sectionName | string | /// Name of the section to add the settings into. /// |
return | void |
public AddSwitch ( string sectionName, IEnumerable |
||
sectionName | string | /// Name of the section to add the settings into. /// |
switches | IEnumerable |
/// The arguments switches to match against the arguments. The values /// may be accessed through these switches. /// |
return | void |
public AddSwitch ( string sectionName, string longName, string shortName ) : void | ||
sectionName | string | /// Name of the section to add the settings into. /// |
longName | string | /// The long name of the switch. /// |
shortName | string | /// The short name of the switch. This must be 1 or 2 characters in /// length. /// |
return | void |
public CommandLineConfigurationSource ( string args ) : System | ||
args | string | /// The arguments to procces. /// |
return | System |
public CommandLineConfigurationSource ( string args, string sectionName ) : System | ||
args | string | /// The arguments to procces. /// |
sectionName | string | /// Name of the section to add the settings into. /// |
return | System |
public CommandLineConfigurationSource ( string args, string sectionName, IEnumerable |
||
args | string | /// The arguments to procces. /// |
sectionName | string | /// Name of the section to add the settings into. /// |
switches | IEnumerable |
/// The arguments switches to match against the arguments. The values /// may be accessed through these switches. /// |
return | System |
public Exists ( string switchName ) : bool | ||
switchName | string | /// Name of the switch. /// |
return | bool |