simple-config
simple-config copied to clipboard
Import dictionary
How should the config file be arranged to import a dictionary (eg. IDictionary<double, string>)?
It isn't supported I'm afraid - I didn't have time and forgot (there are a few ways to represent a dictionary in xml and couldn't be bothered to implement them all)
Just for completeness, If anyone wants to import a dictionary, it is possible to use the CustomBindingStrategyAttribute
, and implement a IBindingStrategy
that parses your specific shape of elements into a dictionary. This way, you get to use SImpleConfig at the same time for the rest of your values