Gets the IEqualityComparer<(Of <(T>)>) that is used to determine equality of keys for the dictionary.
Public ReadOnly Property Comparer As IEqualityComparer(Of TKey)
Dim instance As Dictionary Dim value As IEqualityComparer(Of TKey) value = instance.Comparer
public IEqualityComparer<TKey> Comparer { get; }
public: property IEqualityComparer<TKey>^ Comparer { IEqualityComparer<TKey>^ get (); }
public function get Comparer () : IEqualityComparer<TKey>
Dictionary<(Of <(TKey, TValue>)>) requires an equality implementation to determine whether keys are equal. You can specify an implementation of the IEqualityComparer<(Of <(T>)>) generic interface by using a constructor that accepts a comparer parameter; if you do not specify one, the default generic equality comparer EqualityComparer<(Of <(T>)>)..::.Default is used.
Getting the value of this property is an O(1) operation.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune