This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use.
Learn more
Developer Network
Developer Network
Developer
Sign in
Subscriber portal
Get tools
Downloads
Visual Studio
SDKs
Trial software
Free downloads
Office resources
SharePoint Server 2013 resources
SQL Server 2014 Express resources
Windows Server 2012 resources
Programs
Subscriptions
Overview
Administrators
Students
Microsoft Imagine
Microsoft Student Partners
ISV
Startups
Events
Community
Magazine
Forums
Blogs
Channel 9
Documentation
APIs and reference
Dev centers
Samples
Retired content
We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second.
.NET Framework Class Library
System
IComparable Interface
IComparable Interface
IComparable Methods
IComparable Methods
IComparable Methods
IComparable Methods
CompareTo Method
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.
This documentation is archived and is not being maintained.
Recommended Version
This documentation is archived and is not being maintained.
IComparable Methods
Visual Studio 2010
Other Versions
.NET Framework (current version)
Silverlight
.NET Framework 3.5
Visual Studio 2008
.NET Framework 3.0
.NET Framework 2.0
.NET Framework 1.1
The
IComparable
type exposes the following members.
Methods
Name
Description
CompareTo
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Top
See Also
Reference
IComparable Interface
System Namespace
Show:
Inherited
Protected
Print
Export (
0
)
Print
Share
IN THIS ARTICLE