Hashtable.EqualityComparer 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.
Gets the IEqualityComparer to use for the Hashtable.
protected:
property System::Collections::IEqualityComparer ^ EqualityComparer { System::Collections::IEqualityComparer ^ get(); };
protected System.Collections.IEqualityComparer EqualityComparer { get; }
protected System.Collections.IEqualityComparer? EqualityComparer { get; }
member this.EqualityComparer : System.Collections.IEqualityComparer
Protected ReadOnly Property EqualityComparer As IEqualityComparer
Property Value
The IEqualityComparer to use for the Hashtable.
Exceptions
The property is set to a value, but the hash table was created using an IHashCodeProvider and an IComparer.
Remarks
The IEqualityComparer includes both the comparer and the hash code provider. If an IEqualityComparer is used in the Hashtable constructor, the objects used as keys in the Hashtable are not required to override the Object.GetHashCode and Object.Equals methods.
Retrieving the value of this property is an O(1)
operation.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor