ConfigReader
ConfigReader copied to clipboard
Support configuration interface inheritance
I would like the following scenario to be supported:
public interface IA
{
double Distance { get; }
}
public interface IB : IA
{
int Duration { get; }
}
var configReader = new ConfigurationReader().SetupConfigOf<IB>();
var configuration = configReader.ConfigBrowser.Get<IB>();
Currently it throws
System.Collections.Generic.KeyNotFoundException : The given key was not present in the dictionary.