This repository was archived by the owner on Dec 18, 2018. It is now read-only.
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
IniFileConfigurationSource.Commit() cannot handle empty value #103
Closed
Description
Assume we have an ini file config.ini
; No value for this key
DefaultKey=
Then we do
var config = new IniFileConfigurationSource("config.ini");
config.Set("DefaultKey", "Value");
config.Commit();
The last line throws an exception because empty value is not handled properly. The expected behavior is that config.ini
file is updated to
; No value for this key
DefaultKey=Value