Most .NET Framework methods that perform culture-sensitive string operations by default provide method overloads that allow you to explicitly specify the culture to use by passing a CultureInfo parameter. These overloads allow you to eliminate cultural variations in case mappings and sorting rules and guarantee culture-insensitive results.
This section provides the following topics to demonstrate how to perform culture-insensitive string operations using .NET Framework methods that are culture-sensitive by default.
In This Section
Performing Culture-Insensitive Case Changes
Describes how to use the System.String.ToUpper, System.String.ToLower, System.Char.ToUpper, and System.Char.ToLower methods to perform culture-insensitive case changes.
Performing Culture-Insensitive String Operations in Collections
Describes how to use the CaseInsensitiveComparer, CaseInsensitiveHashCodeProvider class, SortedList, System.Collections.ArrayList.Sort and System.Collections.Specialized.CollectionsUtil.CreateCaseInsensitiveHashtable to perform culture-insensitive operations in collections.
Performing Culture-Insensitive String Operations in Arrays
Describes how to use the System.Array.Sort and System.Array.BinarySearch methods to perform culture-insensitive operations in arrays.
Culture-Insensitive String Operations
Describes why you should be aware of culture when performing operations on strings and provides guidelines for when to perform culture-sensitive operations and when to perform culture-insensitive operations.