Hashtable Constructor

Hashtable Constructor

 

Initializes a new instance of the Hashtable class.

Namespace:   System.Collections
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodHashtable()

Initializes a new, empty instance of the Hashtable class using the default initial capacity, load factor, hash code provider, and comparer.

System_CAPS_pubmethodHashtable(IDictionary)

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 default load factor, hash code provider, and comparer.

System_CAPS_pubmethodHashtable(IDictionary, IEqualityComparer)

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

System_CAPS_pubmethodHashtable(IDictionary, IHashCodeProvider, IComparer)

Obsolete.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 default load factor, and the specified hash code provider and comparer. This API is obsolete. For an alternative, see Hashtable.

System_CAPS_pubmethodHashtable(IDictionary, Single)

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 the default hash code provider and comparer.

System_CAPS_pubmethodHashtable(IDictionary, Single, IEqualityComparer)

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.

System_CAPS_pubmethodHashtable(IDictionary, Single, IHashCodeProvider, IComparer)

Obsolete.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, hash code provider, and comparer.

System_CAPS_pubmethodHashtable(IEqualityComparer)

Initializes a new, empty instance of the Hashtable class using the default initial capacity and load factor, and the specified IEqualityComparer object.

System_CAPS_pubmethodHashtable(IHashCodeProvider, IComparer)

Obsolete.Initializes a new, empty instance of the Hashtable class using the default initial capacity and load factor, and the specified hash code provider and comparer.

System_CAPS_pubmethodHashtable(Int32)

Initializes a new, empty instance of the Hashtable class using the specified initial capacity, and the default load factor, hash code provider, and comparer.

System_CAPS_pubmethodHashtable(Int32, IEqualityComparer)

Initializes a new, empty instance of the Hashtable class using the specified initial capacity and IEqualityComparer, and the default load factor.

System_CAPS_pubmethodHashtable(Int32, IHashCodeProvider, IComparer)

Obsolete.Initializes a new, empty instance of the Hashtable class using the specified initial capacity, hash code provider, comparer, and the default load factor.

System_CAPS_pubmethodHashtable(Int32, Single)

Initializes a new, empty instance of the Hashtable class using the specified initial capacity and load factor, and the default hash code provider and comparer.

System_CAPS_pubmethodHashtable(Int32, Single, IEqualityComparer)

Initializes a new, empty instance of the Hashtable class using the specified initial capacity, load factor, and IEqualityComparer object.

System_CAPS_pubmethodHashtable(Int32, Single, IHashCodeProvider, IComparer)

Obsolete.Initializes a new, empty instance of the Hashtable class using the specified initial capacity, load factor, hash code provider, and comparer.

System_CAPS_protmethodHashtable(SerializationInfo, StreamingContext)

Initializes a new, empty instance of the Hashtable class that is serializable using the specified SerializationInfo and StreamingContext objects.

Return to top
Show:
© 2016 Microsoft