Class KeyValuePairEqualityComparer<K, V>
Default equalityComparer for dictionary entries. Operations only look at keys and uses an externally defined equalityComparer for that.
Inheritance
System.Object
KeyValuePairEqualityComparer<K, V>
Assembly: DistributedLucene.Net.dll
Syntax
public sealed class KeyValuePairEqualityComparer<K, V> : Collections.Generic.IEqualityComparer<KeyValuePair<K, V>>
Type Parameters
Name | Description |
---|---|
K | |
V |
Constructors
Name | Description |
---|---|
KeyValuePairEqualityComparer() | Create an entry equalityComparer using the default equalityComparer for keys |
KeyValuePairEqualityComparer(Collections.Generic.IEqualityComparer<K>) | Create an entry equalityComparer from a specified item equalityComparer for the keys |
Methods
Name | Description |
---|---|
Equals(KeyValuePair<K, V>, KeyValuePair<K, V>) | Test two entries for equality |
GetHashCode(KeyValuePair<K, V>) | Get the hash code of the entry |