Skip to content

v2.4.0

Compare
Choose a tag to compare
@rickyah rickyah released this 21 Feb 22:54
· 93 commits to development since this release

New configuration AllowCreateSectionsOnFly.
When true if you access a non existing section using the indexer the section is
created on the fly instead of throwing an exception.
Defaults to false

e.g.

IniData data = new IniData();
data.Configuration.AllowCreateSectionsOnFly = true;

data["Section1"]["key1"] = "value1"; // No exception!

Console.WriteLine(data["Section1"]["key1"]); // Prints "value1"