Click or drag to resize

HashDictionary Constructor (IDictionary, IEqualityComparer)

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Initializes a new instance of the HashDictionary class by copying the elements from the specified dictionary to the new HashDictionary object. The new HashDictionary object has an initial capacity equal to the number of elements copied, and uses the default load factor and the specified IEqualityComparer object.

Namespace:  Tangosol.Util.Collections
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
public HashDictionary(
	IDictionary d,
	IEqualityComparer equalityComparer
)

Parameters

d
Type: System.CollectionsIDictionary
The IDictionary object to copy to a new HashDictionary object.
equalityComparer
Type: System.CollectionsIEqualityComparer
The IEqualityComparer object that defines the hash code provider and the comparer to use with the HashDictionary. -or- null to use the default hash code provider and the default comparer. The default hash code provider is each key's implementation of GetHashCode and the default comparer is each key's implementation of Equals(Object).
Exceptions
ExceptionCondition
ArgumentNullExceptiond is null.
See Also