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 ();
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);
The IDictionary to copy to a new case-insensitive Hashtable.
A new case-insensitive instance of the Hashtable class containing the entries from the specified IDictionary.
d is null.
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);
A new case-insensitive instance of the Hashtable class with the specified initial capacity.
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.