CollectionsUtil.CreateCaseInsensitiveHashtable Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Hashtable
- CaseInsensitiveHashCodeProvider
- CaseInsensitiveComparer
- Performing Culture-Insensitive String Operations in Collections
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
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
d
is null
.
Remarks
Instead of using the CreateCaseInsensitiveHashtable method, use the Hashtable.Hashtable(IDictionary, IEqualityComparer) constructor to create a case-insensitive Hashtable class.
See also
- Hashtable
- IDictionary
- CaseInsensitiveHashCodeProvider
- CaseInsensitiveComparer
- Performing Culture-Insensitive String Operations in Collections
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
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
- Hashtable
- CaseInsensitiveHashCodeProvider
- CaseInsensitiveComparer
- Performing Culture-Insensitive String Operations in Collections