Confing
1.0
Configuration properties manipulation in INI Files and the Windows Registry
|
Public Member Functions | |
SimpleIni (string file) | |
SimpleIni (string file, bool autosave) | |
SimpleIni (string file, bool autosave, bool ignoreCase) | |
SimpleIni (string file, bool autosave, bool ignoreCase, char separator) | |
void | Save () |
Properties | |
string | this[string key] [get, set] |
Additional Inherited Members | |
![]() | |
static string | EncodeB64 (string val) |
static string | DecodeB64 (string val) |
static string | AddQuotes (string val) |
static string | RemoveQuotes (string val) |
Multipetros.Config.SimpleIni.SimpleIni | ( | string | file | ) |
The simplest constructor, with filename only to configure. Autosave properties setted as False, ingore case as True, and the Separator as "=".
file | A valid file path, with read and write priviliges |
Multipetros.Config.SimpleIni.SimpleIni | ( | string | file, |
bool | autosave | ||
) |
Constructor with the filename and Autosave mode to configure. Ingore case setted True, and Separator by default as "=".
file | A valid file path, with read and write priviliges. |
autosave | True, to save each time a Property added or setted. False, to save manualy by calling the Save() method |
Multipetros.Config.SimpleIni.SimpleIni | ( | string | file, |
bool | autosave, | ||
bool | ignoreCase | ||
) |
Constructor, with filename, autosave mode, ingore case, and separator to configure.
file | A valid file path, with read and write priviliges. |
autosave | True, to save each time a Property added or setted. False, to save manualy by calling the Save() method |
ignoreCase | True to ignore case, False to make properties keys case sensitive |
Multipetros.Config.SimpleIni.SimpleIni | ( | string | file, |
bool | autosave, | ||
bool | ignoreCase, | ||
char | separator | ||
) |
The complete params constructor, with filename, autosave mode, ignore case and separator to configure
file | A valid file path, with read and write priviliges. |
autosave | True, to save each time a Property added or setted. False, to save manualy by calling the Save() method |
ignoreCase | True to ignore case, False to make properties keys case sensitive |
separator | Separator character for keys and values |
void Multipetros.Config.SimpleIni.Save | ( | ) |
Store all properties, with their latest changes to the file
|
getset |
Access properties like Dictionary, negotiating with the Property key name eg: iniObj["keyName"]
When getting value of the specified property, or empty string if property not found
When setting a value for a non-existed property, the property will be automatically added.
If the setting value is null the property will be deleted.