Hashtable.comparer Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Please use KeyComparer properties.
protected:
property System::Collections::IComparer ^ comparer { System::Collections::IComparer ^ get(); void set(System::Collections::IComparer ^ value); };
protected System.Collections.IComparer comparer { get; set; }
[System.Obsolete("Please use KeyComparer properties.")]
protected System.Collections.IComparer comparer { get; set; }
member this.comparer : System.Collections.IComparer with get, set
[<System.Obsolete("Please use KeyComparer properties.")>]
member this.comparer : System.Collections.IComparer with get, set
Protected Property comparer As IComparer
Property Value
The IComparer to use for the Hashtable.
- Attributes
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.