Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft