Skip to main content
.NET Framework Class Library
String..::.CompareOrdinal Method





Compares two String objects by evaluating the numeric values of the corresponding Char objects in each string.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List
 NameDescription
Public methodStatic memberCompareOrdinal(String, String)Compares two specified String objects by evaluating the numeric values of the corresponding Char objects in each string.
Public methodStatic memberCompareOrdinal(String, Int32, String, Int32, Int32)Compares substrings of two specified String objects by evaluating the numeric values of the corresponding Char objects in each substring.
Top
Microsoft is conducting an online survey to understand your opinion of the MSDN Web site. If you choose to participate, the online survey will be presented to you when you leave the MSDN Web site.

Would you like to participate?