CaseInsensitiveHashCodeProvider.Default 属性

获取 CaseInsensitiveHashCodeProvider 的一个实例,该实例与当前线程的 Thread.CurrentCulture 关联并且始终可用。

**命名空间:**System.Collections
**程序集:**mscorlib(在 mscorlib.dll 中)

语法

声明
Public Shared ReadOnly Property Default As CaseInsensitiveHashCodeProvider
用法
Dim value As CaseInsensitiveHashCodeProvider

value = CaseInsensitiveHashCodeProvider.Default
public static CaseInsensitiveHashCodeProvider Default { get; }
public:
static property CaseInsensitiveHashCodeProvider^ Default {
    CaseInsensitiveHashCodeProvider^ get ();
}
/** @property */
public static CaseInsensitiveHashCodeProvider get_Default ()
public static function get Default () : CaseInsensitiveHashCodeProvider

属性值

CaseInsensitiveHashCodeProvider 的实例,它与当前线程的 Thread.CurrentCulture 关联。

备注

当使用此无参数构造函数创建 CaseInsensitiveHashCodeProvider 实例时,会保存当前线程的 Thread.CurrentCulture。比较过程使用保存的区域性来确定大小写规则;因此,哈希代码比较可能会有不同的结果,具体取决于所使用的区域性。有关区域性特定比较的更多信息,请参见 System.Globalization 命名空间和 编码和本地化

平台

Windows 98、Windows 2000 SP4、Windows CE、Windows Millennium Edition、Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

.NET Compact Framework

受以下版本支持:2.0、1.0

请参见

参考

CaseInsensitiveHashCodeProvider 类
CaseInsensitiveHashCodeProvider 成员
System.Collections 命名空间
Thread.CurrentCulture

其他资源

在集合中执行不区分区域性的字符串操作