You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage/INIConfigIO.md
+15-14Lines changed: 15 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,31 +6,32 @@ DDS.Net.Connector.Helpers.**INIConfigIO** provides an easy to use interface for
6
6
INIConfigIO(stringfilename, ILogger?logger=null)
7
7
```
8
8
9
-
It can be simply instantiated:
9
+
It can be simply instantiated, like:
10
10
11
11
```csharp
12
12
INIConfigIOiniFile=newINIConfigIO("file.ini");
13
13
```
14
14
15
15
16
-
Its instance functions help in reading and writing the INI file, they include:
16
+
Instance functions help in reading and writing the INI file:
17
17
18
-
* Clear() - Clears the in-memory data but does not effect the file till it is saved.
19
-
* SaveFile() - Saves the in-memory data into the given file.
18
+
**Clear()* - Clears the in-memory data but does not effect the file till it is saved.
19
+
**SaveFile()* - Saves the in-memory data into the given file.
20
20
21
-
* IEnumerable<string> GetSectionNames() - Gets all the section names present in the file.
22
-
* string GetString(string key, string defaultValue = "") - Gets a value as a string, default value is returned when the key is not present in the file.
23
-
* int GetInteger(string key, int defaultValue = -1) - Gets a value as an integer, default value is returned when the key is not present in the file.
24
-
* float GetFloat(string key, float defaultValue = 0) - Gets a value as a float, default value is returned when the key is not present in the file.
25
-
* double GetDouble(string key, double defaultValue = 0) - Gets a value as a double, default value is returned when the key is not present in the file.
21
+
**IEnumerable*<*string*> *GetSectionNames()* - Gets all the section names present in the file.
22
+
*
23
+
**string**GetString* (string *key*, string *defaultValue* = "") - Gets a value as a string, default value is returned when the key is not present in the file.
24
+
**int**GetInteger* (string *key*, int *defaultValue* = -1) - Gets a value as an integer, default value is returned when the key is not present in the file.
25
+
**float**GetFloat* (string *key*, float *defaultValue* = 0) - Gets a value as a float, default value is returned when the key is not present in the file.
26
+
**double**GetDouble* (string *key*, double *defaultValue* = 0) - Gets a value as a double, default value is returned when the key is not present in the file.
26
27
27
-
* SetString(string key, string value) - Sets specified key's value to the given value
28
-
* SetInteger(string key, int value) - Sets specified key's value to the given value
29
-
* SetFloat(string key, float value) - Sets specified key's value to the given value
30
-
* SetDouble(string key, double value) - Sets specified key's value to the given value
28
+
**SetString*(string *key*, string *value*) - Sets specified key's value to the given value
29
+
**SetInteger*(string *key*, int *value*) - Sets specified key's value to the given value
30
+
**SetFloat*(string *key*, float *value*) - Sets specified key's value to the given value
31
+
**SetDouble*(string *key*, double *value*) - Sets specified key's value to the given value
0 commit comments