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.

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

public:
static Hashtable^ CreateCaseInsensitiveHashtable(
	IDictionary^ d
)

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.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show: