CollectionsUtil.CreateCaseInsensitiveHashtable 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建忽略字符串大小写的类的新实例 Hashtable 。
重载
| 名称 | 说明 |
|---|---|
| CreateCaseInsensitiveHashtable() |
创建具有默认初始容量的类的新不区分大小写的实例 Hashtable 。 |
| CreateCaseInsensitiveHashtable(IDictionary) |
将指定字典中的条目复制到与复制的条目数相同的类的新不区分大小写的实例 Hashtable 。 |
| CreateCaseInsensitiveHashtable(Int32) |
使用指定的初始容量创建类的新不区分大小写的实例 Hashtable 。 |
CreateCaseInsensitiveHashtable()
- Source:
- CollectionsUtil.cs
- Source:
- CollectionsUtil.cs
- Source:
- CollectionsUtil.cs
- Source:
- CollectionsUtil.cs
- Source:
- CollectionsUtil.cs
创建具有默认初始容量的类的新不区分大小写的实例 Hashtable 。
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
返回
具有默认初始容量的 Hashtable 类的新不区分大小写的实例。
注解
使用构造函数创建不区分大小写CreateCaseInsensitiveHashtable的类,Hashtable.Hashtable(IEqualityComparer)而不是使用Hashtable该方法。
另请参阅
适用于
CreateCaseInsensitiveHashtable(IDictionary)
- Source:
- CollectionsUtil.cs
- Source:
- CollectionsUtil.cs
- Source:
- CollectionsUtil.cs
- Source:
- CollectionsUtil.cs
- Source:
- CollectionsUtil.cs
将指定字典中的条目复制到与复制的条目数相同的类的新不区分大小写的实例 Hashtable 。
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
参数
IDictionary要复制到新的不区分Hashtable大小写。
返回
包含指定Hashtable项的类的新不区分大小写的实例IDictionary。
例外
d 是 null。
注解
使用构造函数创建不区分大小写CreateCaseInsensitiveHashtable的类,Hashtable.Hashtable(IDictionary, IEqualityComparer)而不是使用Hashtable该方法。
另请参阅
- Hashtable
- IDictionary
- CaseInsensitiveHashCodeProvider
- CaseInsensitiveComparer
- 在集合中执行 Culture-Insensitive 字符串操作
适用于
CreateCaseInsensitiveHashtable(Int32)
- Source:
- CollectionsUtil.cs
- Source:
- CollectionsUtil.cs
- Source:
- CollectionsUtil.cs
- Source:
- CollectionsUtil.cs
- Source:
- CollectionsUtil.cs
使用指定的初始容量创建类的新不区分大小写的实例 Hashtable 。
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
参数
返回
具有指定初始容量的类的新不区分大小写的实例 Hashtable 。
例外
capacity 小于零。
注解
使用构造函数创建不区分大小写CreateCaseInsensitiveHashtable的类,Hashtable.Hashtable(Int32, IEqualityComparer)而不是使用Hashtable该方法。