Click or drag to resize
SemanticVersionCompareTo Method (Object)
Compares two SemanticVersions. Implements IComparable.CompareTo.

Namespace: semver.tools
Assembly: semver.tools (in semver.tools.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public int CompareTo(
	Object obj
)

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