Constructors: NewHashtable

NewHashtable

Initializes a new instance of the Hashtable class by copying the elements from the specified dictionary to the new Hashtable object. The new Hashtable object has an initial capacity equal to the number of elements copied, and uses the specified load factor and IEqualityComparer object.



 Public Function NewHashtable(
	  Optional ByVal d As IDictionary,
	  Optional ByVal LoadFactor As Single = 1 !,
	  Optional ByVal EqualityComparer As IEqualityComparer ) As Hashtable

Parameters

d
[ByVal] Optional. IDictionary. The IDictionary object containing keys and values to be added to the Hashtable.
LoadFactor
[ByVal] Optional. Single. 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.  

Default: 1 !

EqualityComparer
[ByVal] Optional. IEqualityComparer. The IEqualityComparer object that defines the hash code provider and the comparer to use with the Hashtable object.

Return Values

Hashtable -  A new Hashtable object with the specified parameters.

See Also

Project CorLib Overview

Class Constructors Overview

IEqualityComparer

Hashtable