Skip to content

Supported types

Szpi edited this page Sep 15, 2018 · 5 revisions

IniWrapper supports types (it is checked in tests):

  • 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

No supported:

  • IDictionary of complex types In both cases library throw exception.

Handling IEnumerable of complex types

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.

Clone this wiki locally