Reads configuration from a file. The basic structure of a configuration file is: Property Name = "value"; Property = value; /* Block Comment
Public Member Functions | |
| ConfigReader (string file) | |
| Sets up a new config reader for the given config file. More... | |
| bool | GetBoolean (string property) |
| Gets the named property as a true/false value. A property that doesn't exist will always be false. More... | |
| bool | GetBoolean (string property, bool ifNotFound) |
| Gets the named property as a true/false value. A property that doesn't exist will be the defined value. More... | |
Public Attributes | |
| Dictionary< string, string > | Settings =new Dictionary<string,string>() |
| The parsed settings from the config file. More... | |
Properties | |
| string | this[string property] [get, set] |
| Gets or sets the named configuration property. More... | |
|
inline |
Sets up a new config reader for the given config file.
|
inline |
Gets the named property as a true/false value. A property that doesn't exist will always be false.
| property | The property to get the value for. |
|
inline |
Gets the named property as a true/false value. A property that doesn't exist will be the defined value.
| property | The property to get the value for. |
| ifNotFound | The value the result should be if the named property is not found. |
| Dictionary<string,string> SPABuilder.ConfigReader.Settings =new Dictionary<string,string>() |
The parsed settings from the config file.
|
getset |
Gets or sets the named configuration property.
| property | The configuration property to get or set the value of. |