ConfigReader icon indicating copy to clipboard operation
ConfigReader copied to clipboard

Verify that all the parameters are mapped

Open borismod opened this issue 12 years ago • 1 comments

When used without default values, only with the interface. In case some parameter is missing in the config file, throw an exception saying that parameter is missing.

public interface IMailNotificationSettings{ string Username { get; } string Password { get; } }

ConfigurationReader configReader = new ConfigurationReader().SetupConfigOf<IMailNotificationSettings>(); IMailNotificationSettings mySettings = configReader.ConfigBrowser.Get<IMailNotificationSettings>();

Above lines should throw an exception since Password is missing in config file

borismod avatar Aug 28 '13 21:08 borismod

Hey @borismod, I'm not actively maintaining this library any more, but would be happy to accept a pull request.

troygoode avatar Aug 28 '13 23:08 troygoode