Supplies a hashcode for the implementing class. The hashing algorithm ignores the case for Strings. The default for Hashtables is to use case sensitive hashcodes. This class is typically used in conjunction with CaseInsensitiveComparer
Object
CaseInsensitiveHashCodeProvider
[Visual Basic] Public Class CaseInsensitiveHashCodeProvider Implements IHashCodeProvider [C#] public class CaseInsensitiveHashCodeProvider : IHashCodeProvider [C++] public __gc class CaseInsensitiveHashCodeProvider : public IHashCodeProvider [JScript] public class CaseInsensitiveHashCodeProvider implements IHashCodeProvider
The CaseInsensitiveHashCodeProvider class is used in conjunction with Hashtable. The objects used as keys by a Hashtable must implement or inherit the GetHashCode and Equals methods. However, if the Hashtable constructor is passed a reference to an object that implements both the IHashCodeProvider interface and the IComparer interface, then GetHashCode and Compare can be used instead.
Namespace: System.Collections
Assembly: mscorlib.dll
CaseInsensitiveHashCodeProvider Members | System.Collections Namespace | Hashtable | IHashCodeProvider | IComparer