Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Hashtable::comparer Property

 
Note: This API is now obsolete.

Gets or sets the IComparer to use for the Hashtable.

Namespace:   System.Collections
Assembly:  mscorlib (in mscorlib.dll)

protected:
[ObsoleteAttribute("Please use KeyComparer properties.")]
property IComparer^ comparer {
	IComparer^ get();
	void set(IComparer^ value);
}

Property Value

Type: System.Collections::IComparer^

The IComparer to use for the Hashtable.

Exception Condition
ArgumentException

The property is set to a value, but the hash table was created using an IEqualityComparer.

Retrieving the value of this property is an O(1) operation.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft