CompareTo Method
CompareTo(Object)
Compares the relative sort order of the specified object to the current object.
C#
public int CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
System.Int32
An integer that indicates whether the current instance precedes (negative value), follows (positive value), or occurs in the same position (0) in the sort order as the other object.
Remarks
By definition any object compares greater than null.
CompareTo(FirmwareVersion)
Compares the relative sort order of the current instance with another object of the same type.
C#
public int CompareTo(FirmwareVersion other)
Parameters
Type | Name | Description |
---|---|---|
FirmwareVersion | other |
Returns
System.Int32
An integer that indicates whether the current instance precedes (negative value), follows (positive value), or occurs in the same position (0) in the sort order as the other object.