SemanticVersionCompareTo Method (SemanticVersion) |
Compares two SemanticVersions. Implements IComparable<SemanticVersion>.CompareTo.
Namespace: semver.toolsAssembly: semver.tools (in semver.tools.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic int CompareTo(
SemanticVersion other
)
Public Function CompareTo (
other As SemanticVersion
) As Integer
public:
virtual int CompareTo(
SemanticVersion^ other
) sealed
abstract CompareTo :
other : SemanticVersion -> int
override CompareTo :
other : SemanticVersion -> int
Parameters
- other
- Type: semver.toolsSemanticVersion
Another SemanticVersion to compare against "this" 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
IComparableTCompareTo(T)
See Also