Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions xml/System/StringComparison.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
For more information about comparisons, see the <xref:System.String?displayProperty=nameWithType> class remarks. For more information about culture, see the <xref:System.Globalization.CultureInfo?displayProperty=nameWithType> class remarks. For guidelines on when to use ordinal or culture-sensitive comparison rules or the rules of the invariant culture, see [Best Practices for Using Strings](~/docs/standard/base-types/best-practices-strings.md). For a set of text files that contain information on the character weights used in sorting and comparison operations for Windows operating systems, see [Sorting Weight Tables](https://www.microsoft.com/download/details.aspx?id=10921). For the sort weight table for Linux and macOS, see the [Default Unicode Collation Element Table](https://www.unicode.org/Public/UCA/latest/allkeys.txt).

## Examples
The following example compares four sets of words by using each member of the <xref:System.StringComparison> enumeration. The comparisons use the conventions of the English (United States) and Sami, Nothern (Sweden) cultures. Note that the strings "encyclopædia" and "encyclopedia" are considered equivalent in the en-US culture but not in the Sami, Northern (Sweden) culture.
The following example compares four sets of words by using each member of the <xref:System.StringComparison> enumeration. The comparisons use the conventions of the English (United States) and Sami, Northern (Sweden) cultures. Note that the strings "encyclopædia" and "encyclopedia" are considered equivalent in the en-US culture but not in the Sami, Northern (Sweden) culture.

[!code-csharp[System.String.Equals#3](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.string.equals/cs/equals_ex3.cs#3)]
[!code-vb[System.String.Equals#3](~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.string.equals/vb/equals_ex3.vb#3)]
Expand Down Expand Up @@ -279,4 +279,4 @@
</Docs>
</Member>
</Members>
</Type>
</Type>