ConfigReader icon indicating copy to clipboard operation
ConfigReader copied to clipboard

Support configuration interface inheritance

Open borismod opened this issue 12 years ago • 0 comments

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.

borismod avatar Aug 01 '13 07:08 borismod