Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# Dictionary contains key case insensitive

//do this when creating the dictionary instence
var dict = new Dictionary<string, YourClass>(
        StringComparer.InvariantCultureIgnoreCase);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Dictionary #key #case #insensitive
ADD COMMENT
Topic
Name
2+5 =