Export (0) Print
Expand All

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
)
public static Hashtable CreateCaseInsensitiveHashtable (
	IDictionary d
)
public static function CreateCaseInsensitiveHashtable (
	d : IDictionary
) : Hashtable
Not applicable.

Parameters

d

The IDictionary to copy to a new case-insensitive Hashtable.

Return Value

A new case-insensitive instance of the Hashtable class containing the entries from the specified IDictionary.

Exception typeCondition

ArgumentNullException

d is a null reference (Nothing in Visual Basic).

Instead of using the CreateCaseInsensitiveHashtable method, use the System.Collections.Hashtable(IDictionary,IEqualityComparer) constructor to create a case-insensitive Hashtable class.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft