Click or drag to resize

YVersionCompareTo Method

Compare the current YVersion to obj and returns the diference between them.

Namespace: Upsilon.Common.Library
Assembly: Upsilon.Common.Library (in Upsilon.Common.Library.dll) Version: 2.2.2+14985a67b419f90e14e6b1bde61d18cf6cf12b27
Syntax
C#
public int CompareTo(
	Object? obj
)

Parameters

obj  Object
The first version to compare.

Return Value

Int32

Returns 1 if the current YVersion is greater than obj,

-1 if the current YVersion is lower than obj,

0 if the current YVersion is equal to obj.

Implements

IComparableCompareTo(Object)
Exceptions
ExceptionCondition
ExceptionIf obj is not a YVersion, an exception will be thrown.
See Also