Click or drag to resize

HashDictionary Constructor (IDictionary, Single)

.NET API Reference for Oracle® Coherence Community Edition
(14.1.1.0)
E55634-01
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 specified load factor, and the default hash code provider and comparer.

Namespace:  Tangosol.Util.Collections
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.1 (14.1.1.1)
Syntax
C#
public HashDictionary(
	IDictionary d,
	float loadFactor
)

Parameters

d
Type: System.CollectionsIDictionary
The IDictionary object to copy to a new HashDictionary object.
loadFactor
Type: SystemSingle
A number in the range from 0.1 through 1.0 that is multiplied by the default value which provides the best performance. The result is the maximum ratio of elements to buckets.
Exceptions
ExceptionCondition
ArgumentNullExceptiond is null.
ArgumentOutOfRangeExceptionloadFactor is less than 0.1.-or- loadFactor is greater than 1.0.
See Also