CollectionsUtil.CreateCaseInsensitiveHashtable Method (IDictionary)
.NET Framework (current version)
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.HashtableA 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.
Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Available since 10
.NET Framework
Available since 1.1
Show: