Bewerken

Share via


CollectionsUtil.CreateCaseInsensitiveHashtable Method

Definition

Creates a new instance of the Hashtable class that ignores the case of strings.

Overloads

CreateCaseInsensitiveHashtable()

Creates a new case-insensitive instance of the Hashtable class with the default initial capacity.

CreateCaseInsensitiveHashtable(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.

CreateCaseInsensitiveHashtable(Int32)

Creates a new case-insensitive instance of the Hashtable class with the specified initial capacity.

CreateCaseInsensitiveHashtable()

Source:
CollectionsUtil.cs
Source:
CollectionsUtil.cs
Source:
CollectionsUtil.cs

Creates a new case-insensitive instance of the Hashtable class with the default initial capacity.

public:
 static System::Collections::Hashtable ^ CreateCaseInsensitiveHashtable();
public static System.Collections.Hashtable CreateCaseInsensitiveHashtable ();
static member CreateCaseInsensitiveHashtable : unit -> System.Collections.Hashtable
Public Shared Function CreateCaseInsensitiveHashtable () As Hashtable

Returns

A new case-insensitive instance of the Hashtable class with the default initial capacity.

Remarks

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

See also

Applies to

CreateCaseInsensitiveHashtable(IDictionary)

Source:
CollectionsUtil.cs
Source:
CollectionsUtil.cs
Source:
CollectionsUtil.cs

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.

public:
 static System::Collections::Hashtable ^ CreateCaseInsensitiveHashtable(System::Collections::IDictionary ^ d);
public static System.Collections.Hashtable CreateCaseInsensitiveHashtable (System.Collections.IDictionary d);
static member CreateCaseInsensitiveHashtable : System.Collections.IDictionary -> System.Collections.Hashtable
Public Shared Function CreateCaseInsensitiveHashtable (d As IDictionary) As Hashtable

Parameters

d
IDictionary

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

Returns

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

Exceptions

Remarks

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

See also

Applies to

CreateCaseInsensitiveHashtable(Int32)

Source:
CollectionsUtil.cs
Source:
CollectionsUtil.cs
Source:
CollectionsUtil.cs

Creates a new case-insensitive instance of the Hashtable class with the specified initial capacity.

public:
 static System::Collections::Hashtable ^ CreateCaseInsensitiveHashtable(int capacity);
public static System.Collections.Hashtable CreateCaseInsensitiveHashtable (int capacity);
static member CreateCaseInsensitiveHashtable : int -> System.Collections.Hashtable
Public Shared Function CreateCaseInsensitiveHashtable (capacity As Integer) As Hashtable

Parameters

capacity
Int32

The approximate number of entries that the Hashtable can initially contain.

Returns

A new case-insensitive instance of the Hashtable class with the specified initial capacity.

Exceptions

capacity is less than zero.

Remarks

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

See also

Applies to