How to read values from Dictionary by ignoring the case

How to read values from Dictionary by ignoring the case.

For eg : if the Dictionary is PFA
image
Then I am expecting dictionary(“abcd”).ToString to return “one”.

But when Iam doing it, Iam getting the below error.

Log message : The given key was not present in the dictionary.

Can someone help me in solving this.
Thanks in advance

Dictionary is case sensitive, so before adding the key to dictionary, convert them to either lower or upper case.

2 Likes

Ok thankyou for the information.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.