CaseInsensitiveHashCodeProvider Constructors
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.
Initializes a new instance of the CaseInsensitiveHashCodeProvider class.
Overloads
CaseInsensitiveHashCodeProvider() |
Initializes a new instance of the CaseInsensitiveHashCodeProvider class using the CurrentCulture of the current thread. |
CaseInsensitiveHashCodeProvider(CultureInfo) |
Initializes a new instance of the CaseInsensitiveHashCodeProvider class using the specified CultureInfo. |
CaseInsensitiveHashCodeProvider()
Initializes a new instance of the CaseInsensitiveHashCodeProvider class using the CurrentCulture of the current thread.
public:
CaseInsensitiveHashCodeProvider();
public CaseInsensitiveHashCodeProvider();
Public Sub New ()
Remarks
When the CaseInsensitiveHashCodeProvider instance is created using this 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. For more information on culture-specific comparisons, see the System.Globalization namespace and Globalization and Localization.
See also
- CurrentCulture
- CultureInfo
- CompareInfo
- Performing Culture-Insensitive String Operations in Collections
Applies to
CaseInsensitiveHashCodeProvider(CultureInfo)
Initializes a new instance of the CaseInsensitiveHashCodeProvider class using the specified CultureInfo.
public:
CaseInsensitiveHashCodeProvider(System::Globalization::CultureInfo ^ culture);
public CaseInsensitiveHashCodeProvider(System.Globalization.CultureInfo culture);
new System.Collections.CaseInsensitiveHashCodeProvider : System.Globalization.CultureInfo -> System.Collections.CaseInsensitiveHashCodeProvider
Public Sub New (culture As CultureInfo)
Parameters
- culture
- CultureInfo
The CultureInfo to use for the new CaseInsensitiveHashCodeProvider.
Exceptions
culture
is null
.
Remarks
Comparison procedures use the specified System.Globalization.CultureInfo to determine the casing rules. Hash code comparisons might have different results depending on the culture. For more information on culture-specific comparisons, see the System.Globalization namespace and Globalization and Localization.