Click or drag to resize

HashDictionary Constructor (Int32, Single)

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
Initializes a new instance of the HashDictionary class using the specified initial capacity and load factor, and the default hash code provider and comparer.

Namespace:  Tangosol.Util.Collections
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
public HashDictionary(
	int capacity,
	float loadFactor
)

Parameters

capacity
Type: SystemInt32
The approximate number of elements the HashDictionary object can initially contain.
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
ArgumentOutOfRangeExceptioncapacity is less than zero.-or- loadFactor is less than 0.1.-or- loadFactor is greater than 1.0.
ArgumentExceptioncapacity is causing an overflow.
See Also