Compare one object to another

Namespace: Contracts.Data
Assembly: Contracts (in Contracts.dll)

Public Function CompareTo( _ 
ByVal obj As Object
) As Integer Implements _ 
IComparable.CompareTo
This language is not supported or no code example is available.
public int CompareTo( 
object obj 
)
This language is not supported or no code example is available.
public:  
int CompareTo( 
object^ obj 
)
This language is not supported or no code example is available.
public function CompareTo( 
obj : object 
) : int;
This language is not supported or no code example is available.

Parameters

obj
Type: object

<default>

Return Value

Type: int

Implements

IComparable.CompareTo

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1