I have dictionary entries that are read to a Dictionary <string,string> myDict=null;
The entries are like:
"user","Anthony"
"lastLogin","May 10 2010 20:43"
How would I retrieve lastLogin with lowercase key myDict["lastlogin"] ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A constructor for
Dictionary<TKey,TValue>takes a comparer object. You simply need to pass whatever comparer you want to it.Of course, you may want to pass things like
CurrentCultureIgnoreCaseorInvariantCultureIgnoreCasedepending on your need.