NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

CaseInsensitiveHashCodeProvider Class

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

Remarks

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.

Requirements

Namespace: System.Collections

Assembly: mscorlib.dll

See Also

CaseInsensitiveHashCodeProvider Members | System.Collections Namespace | Hashtable | IHashCodeProvider | IComparer