CaseInsensitiveHashCodeProvider.Default CaseInsensitiveHashCodeProvider.Default CaseInsensitiveHashCodeProvider.Default CaseInsensitiveHashCodeProvider.Default Property

定義

取得 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執行個體使用無參數建構函式,建立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.

適用於

另請參閱