CollectionsUtil.CreateCaseInsensitiveHashtable Method

Definition

Overloads

CreateCaseInsensitiveHashtable()

Creates a new case-insensitive instance of the Hashtable class with the default initial capacity.

CreateCaseInsensitiveHashtable(IDictionary)

Copies the entries from the specified dictionary to a new case-insensitive instance of the Hashtable class with the same initial capacity as the number of entries copied.

CreateCaseInsensitiveHashtable(Int32)

Creates a new case-insensitive instance of the Hashtable class with the specified initial capacity.

CreateCaseInsensitiveHashtable()

Creates a new case-insensitive instance of the Hashtable class with the default initial capacity.

public static System.Collections.Hashtable CreateCaseInsensitiveHashtable ();
Returns

A new case-insensitive instance of the Hashtable class with the default initial capacity.

Remarks

Instead of using the CreateCaseInsensitiveHashtable method, use the Hashtable.Hashtable(IEqualityComparer) constructor to create a case-insensitive Hashtable class.

CreateCaseInsensitiveHashtable(IDictionary)

Copies the entries from the specified dictionary to a new case-insensitive instance of the Hashtable class with the same initial capacity as the number of entries copied.

public static System.Collections.Hashtable CreateCaseInsensitiveHashtable (System.Collections.IDictionary d);
Parameters
d
IDictionary

The IDictionary to copy to a new case-insensitive Hashtable.

Returns

A new case-insensitive instance of the Hashtable class containing the entries from the specified IDictionary.

Exceptions

Remarks

Instead of using the CreateCaseInsensitiveHashtable method, use the Hashtable.Hashtable(IDictionary, IEqualityComparer) constructor to create a case-insensitive Hashtable class.

CreateCaseInsensitiveHashtable(Int32)

Creates a new case-insensitive instance of the Hashtable class with the specified initial capacity.

public static System.Collections.Hashtable CreateCaseInsensitiveHashtable (int capacity);
Parameters
capacity
Int32

The approximate number of entries that the Hashtable can initially contain.

Returns

A new case-insensitive instance of the Hashtable class with the specified initial capacity.

Exceptions

capacity is less than zero.

Remarks

Instead of using the CreateCaseInsensitiveHashtable method, use the Hashtable.Hashtable(Int32, IEqualityComparer) constructor to create a case-insensitive Hashtable class.