Skip to content

Commit ced9b4a

Browse files
authored
Update README.md
1 parent 660214a commit ced9b4a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ To read these values, your C# code would look like:
4848
var config = Configuration.LoadFromFile("sample.cfg");
4949
var section = config["General"];
5050

51-
string someString = section["SomeString"].StringValue;
52-
int someInteger = section["SomeInteger"].IntValue;
53-
float someFloat = section["SomeFloat"].FloatValue;
54-
bool someBool = section["SomeBoolean"].BoolValue;
55-
int[] someIntArray = section["SomeArray"].IntValueArray;
56-
string[] someStringArray = section["SomeArray"].StringValueArray;
57-
DayOfWeek day = section["Day"].GetValue<DayOfWeek>();
51+
string someString = section["SomeString"].StringValue;
52+
int someInteger = section["SomeInteger"].IntValue;
53+
float someFloat = section["SomeFloat"].FloatValue;
54+
bool someBool = section["SomeBoolean"].BoolValue;
55+
int[] someIntArray = section["SomeArray"].IntValueArray;
56+
string[] someStringArray = section["SomeArray"].StringValueArray;
57+
DayOfWeek day = section["Day"].GetValue<DayOfWeek>();
5858

5959
// Entire user-defined objects can be created from sections and vice versa.
6060
var person = config["Person"].ToObject<Person>();

0 commit comments

Comments
 (0)