CollectionsUtil::CreateCaseInsensitiveHashtable Method (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.
Assembly: System (in System.dll)
Parameters
- d
-
Type:
System.Collections::IDictionary^
The IDictionary to copy to a new case-insensitive Hashtable.
Return Value
Type: System.Collections::Hashtable^A new case-insensitive instance of the Hashtable class containing the entries from the specified IDictionary.
| Exception | Condition |
|---|---|
| ArgumentNullException | d is null. |
Instead of using the CreateCaseInsensitiveHashtable method, use the Hashtable::Hashtable(IDictionary^, IEqualityComparer^) constructor to create a case-insensitive Hashtable class.
Available since 10
.NET Framework
Available since 1.1