Finding spelling of an element in an ignore case dictionary
- by Andrew White
Hi,
Weird question, but I have a dictionary created with StringComparer.OrdinalIgnoreCase, looks something like this
AaA, 10
aAB, 20
AAC, 12
I then use myDictionary["AAA"] to find the value associated with the key, but what I also need to know is what the actual spelling of the key is in myDictionary, e.g. in this case I want it to return AaA.…