I use it Dictionary<string, string>as a configuration for tools, and it would be easier for my users not to know about programming in order to be able to get autocomplete from Visual Studio.
In Python, I can make a dictionary and access various values using a point operator.
d = {'name':'Joe', 'mood':'grumpy'}
d.name
d.mood
Does C # have a way to do this?
I understand all the problems associated with the fact that the dictionary is just a general collection (how general? Is it just a list of interesting KeyValuePairs questions). I am not going to write a wrapper class for this to execute it (I would like it to be a little more flexible than using explicit properties with a custom class).
source
share