New warning in .net 2.0... The cumbersome, and difficult to remember
case-insensitive comparer declaration for the hashtable has been
deprecated... It tells me to use IEqualityCompar er instead.
So, this syntax is obsolete:
New Hashtable(New CaseInsensitive HashCodeProvide r, New
CaseInsensitive Comparer)
So, the replacement seems to be (after an hour of searching):
New Hashtable(Strin gComparer.Ordin alIgnoreCase)
The following link is helpful as it describes the "why"... At least
this one will be easy to remember.
http://msdn.microsoft.com/library/de...ngsinNET20.asp
Example (vb.net):
Dim d As New Hashtable(Strin gComparer.Ordin alIgnoreCase)
d.Add("hello", "why do they make this so difficult?")
If d.ContainsKey(" HELLO") Then
MsgBox("because ")
End If
Hopefully this saves someone else an hour of searching...
Northern State - Is "Georgeous George" a liberal arts, academic,
literary kinda name? Right?