SemanticVersionCompareTo Method (Object) |
Compares two SemanticVersions. Implements IComparable.CompareTo.
Namespace: semver.toolsAssembly: semver.tools (in semver.tools.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic int CompareTo(
Object obj
)
Public Function CompareTo (
obj As Object
) As Integer
public:
virtual int CompareTo(
Object^ obj
) sealed
abstract CompareTo :
obj : Object -> int
override CompareTo :
obj : Object -> int
Parameters
- obj
- Type: SystemObject
Another SemanticVersion to compare against "this" SemanticVersion.
Throws an exception if the input parameter is not a SemanticVersion.
Return Value
Type:
Int32
less than 0: This instance precedes obj in the sort order.
equals 0: Both instances are equal.
greater than 0: The other instance precedes obj in the sort order.
Implements
IComparableCompareTo(Object)
See Also