Mono Class Library: System.Collections.Hashtable Overview | Members

System.Collections.Hashtable Constructor

Constructs and initializes a new instance of the Hashtable class with the specified initial capacity. [Edit]

public Hashtable (int capacity)

Parameters

capacity
A int that specifies the minimum number of entries that the new Hashtable instance can initially contain. [Edit]

Exceptions

TypeReason
ArgumentOutOfRangeExceptioncapacity < 0. [Edit]

Remarks

The new instance is initialized with the default IHashCodeProvider and IComparer.

The number of entries that the new instance can contain can be greater than capacity.

[Edit]

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0