simple-config icon indicating copy to clipboard operation
simple-config copied to clipboard

Import dictionary

Open aahaselgrove opened this issue 8 years ago • 2 comments

How should the config file be arranged to import a dictionary (eg. IDictionary<double, string>)?

aahaselgrove avatar Mar 07 '16 03:03 aahaselgrove

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)

spadger avatar Jan 04 '17 10:01 spadger

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

spadger avatar May 21 '18 12:05 spadger