United States (English)
Sign in
Home
Library
Learn
Samples
Downloads
Support
Community
Forums
MSDN Library
.NET Development
.NET Framework 4.5
.NET Framework Class Library
System
IComparable Interface
IComparable Methods
CompareTo Method
This topic has not yet been rated
-
Rate this topic
IComparable Methods
.NET Framework 4.5
Other Versions
.NET Framework 4
.NET Framework 3.5
.NET Framework 3.0
.NET Framework 2.0
.NET Framework 1.1
Silverlight
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
Did you find this helpful?
Yes
No
Not accurate
Not enough depth
Need more code examples
Tell us more...
(
1500
characters remaining)