Skip to content
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
@ChengTian

Description

@ChengTian

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions