-
Notifications
You must be signed in to change notification settings - Fork 0
Supported types
Piotr Szkudlarski edited this page Dec 11, 2018
·
5 revisions
IniWrapper supports types:
- Primitives (int, uint, char etc.)
- Enums (written as int values)
- IEnumerable (written as values default separated by comma eg. 1,2,3,4,5)
- IDictionary
- strings
- nullable types
- complex types ( custom class / struct)
- IEnumerable of complex types
- IReadonlyList, IReadOnlyCollection, ICollection, IReadOnlyDictionary
For other types or custom behaviour please use Custom Converter.
Not supported:
- IDictionary of complex types In this case library throws exception.
Library will add _index postfix to section (e.g TestConfiguration_0, TestConfiguration_1). While reading libarary calls IniParser.Read(Section, null) Read method with null key to check if section exists if not library stops reading. If you are using custom parser make sure that this calls return not null or empty value.