CaseInsensitiveComparer.Default Property
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.
Gets an instance of CaseInsensitiveComparer that is associated with the CurrentCulture of the current thread and that is always available.
public:
static property System::Collections::CaseInsensitiveComparer ^ Default { System::Collections::CaseInsensitiveComparer ^ get(); };
public static System.Collections.CaseInsensitiveComparer Default { get; }
static member Default : System.Collections.CaseInsensitiveComparer
Public Shared ReadOnly Property Default As CaseInsensitiveComparer
Property Value
An instance of CaseInsensitiveComparer that is associated with the CurrentCulture of the current thread.
Remarks
When the CaseInsensitiveComparer 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 sort order and casing rules; therefore, string 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.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om