BigInt.CompareTo Method

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.
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
object

An object to compare with this instance.

Return Value

int

A value that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance precedes obj in the sort order. Zero This instance occurs in the same position in the sort order as obj. Greater than zero This instance follows obj in the sort order.

Implements

IComparable.CompareTo
Exception type Condition

ArgumentException

obj is not the same type as this instance.

.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, 4.7.2, 4.8

In this article

Definition