Closed daniol closed 1 year ago
I used the basic example:
public interface ICreds { string Username { get; } string Password { get; } } public interface IConfig { ICreds Admin { get; } ICreds Normal { get; } }
The configuration can be read from the file with:
IConfig config = new ConfigurationBuilder<IConfig>().UseJsonFile("config.json").Build();
But when a change is done in a nested property, the JSON file is not updated:
config.Normal.Username = "changed";
JSON file before (empty object)
{ }
JSON file after (empty object)
Fixed in v5.0.3.
I used the basic example:
The configuration can be read from the file with:
But when a change is done in a nested property, the JSON file is not updated:
JSON file before (empty object)
JSON file after (empty object)