Hashtable.comparer Hashtable.comparer Hashtable.comparer Hashtable.comparer Property

Definition

Warning

This API is now obsolete.

Gets or sets the IComparer to use for the Hashtable.

protected:
 property System::Collections::IComparer ^ comparer { System::Collections::IComparer ^ get(); void set(System::Collections::IComparer ^ value); };
[System.Obsolete("Please use KeyComparer properties.")]
protected System.Collections.IComparer comparer { get; set; }
member this.comparer : System.Collections.IComparer with get, set
Protected Property comparer As IComparer

Property Value

Exceptions

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

Remarks

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

Applies to

See Also