CaseInsensitiveHashCodeProvider.Default 属性
定义
获取 CaseInsensitiveHashCodeProvider 的一个实例,该实例与当前线程的 CurrentCulture 关联并且始终可用。Gets an instance of CaseInsensitiveHashCodeProvider that is associated with the CurrentCulture of the current thread and that is always available.
public:
static property System::Collections::CaseInsensitiveHashCodeProvider ^ Default { System::Collections::CaseInsensitiveHashCodeProvider ^ get(); };
public static System.Collections.CaseInsensitiveHashCodeProvider Default { get; }
member this.Default : System.Collections.CaseInsensitiveHashCodeProvider
Public Shared ReadOnly Property Default As CaseInsensitiveHashCodeProvider
属性值
CaseInsensitiveHashCodeProvider 的实例,它与当前线程的 CurrentCulture 关联。An instance of CaseInsensitiveHashCodeProvider that is associated with the CurrentCulture of the current thread.
注解
CaseInsensitiveHashCodeProvider使用无参数构造函数创建实例时,将 Thread.CurrentCulture 保存当前线程的。When the CaseInsensitiveHashCodeProvider instance is created using the parameterless constructor, the Thread.CurrentCulture of the current thread is saved. 比较过程使用保存的区域性来确定大小写规则;因此,哈希代码比较可能会产生不同的结果,具体取决于区域性。Comparison procedures use the saved culture to determine the casing rules; therefore, hash code comparisons might have different results depending on the culture. 有关区域性特定比较的详细信息,请参阅 System.Globalization 命名空间和 全球化和本地化。For more information on culture-specific comparisons, see the System.Globalization namespace and Globalization and Localization.