On May 24, 11:06 am, "Christof Nordiek" <c...@nospam.dewrote:
are there any benefits in using StringDictionary over Dictionary<string,
string?
StringDictionary compares the keys always case insensitive by converting any
string to lower case before use.
This may be disirable or not.
One alternative for Dictionary<to achieve the case insensitivity but
preserving the case of the keys themselves is to specify the
IEqualityComparer to use.
The MSDN docs for Dictionary<TKey,TValue>(IEqualityComparer<TKey>) has
this has an example.
Jon