UInt32.IComparable.CompareTo(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares this instance to a specified object and returns an indication of their relative values.
virtual int System.IComparable.CompareTo(System::Object ^ value) = IComparable::CompareTo;
int IComparable.CompareTo (object value);
abstract member System.IComparable.CompareTo : obj -> int
override this.System.IComparable.CompareTo : obj -> int
Function CompareTo (value As Object) As Integer Implements IComparable.CompareTo
Parameters
- value
- Object
An object to compare, or null
.
Returns
A signed number indicating the relative values of this instance and value
.
Return Value | Description |
---|---|
Less than zero | This instance is less than value . |
Zero | This instance is equal to value . |
Greater than zero | This instance is greater than value , or value is null . |
Implements
Exceptions
value
is not a UInt32.
Remarks
This member is an explicit interface member implementation. It can be used only when the UInt32 instance is cast to an IConvertible interface.
Any instance of UInt32, regardless of its value, is considered greater than null
.