SqlDouble.CompareTo Method (Object)


Compares this SqlDouble instance to the supplied Object and returns an indication of their relative values.

Namespace:   System.Data.SqlTypes
Assembly:  System.Data (in System.Data.dll)

public int CompareTo(
	object value


Type: System.Object

The Object to compare.

Return Value

Type: System.Int32

A signed number that indicates the relative values of the instance and the object.

Return value


Less than zero

This instance is less than the object.


This instance is the same as the object.

Greater than zero

This instance is greater than the object


The object is a null reference (Nothing in Visual Basic).

.NET Framework
Available since 1.1
Return to top