I have various values and names stored in a db table, that my code will use for various tasks.
These are read into a kvp , so that I can get to the right value from its key when I need to.
As far as I’ve seen so far, getting to the value using the index of the key is easy, but can I get in via the name of the key instead
kvp["name of key"].value
for instance?
I know any key/values stored in the config files can be accessed as
ConfigurationManager.AppSettings["queryLoadJobDataDetails"]
but as I need to read these values in as I go, adding them to web.config is a bit pointless!
I’m just Guessing what you need here:
Also look at TryGetValue: