Compare two BaseObject object using Index value

Namespace:  Hyleos.Common
Assembly:  Hyleos.Common (in Hyleos.Common.dll) Version: 1.0.3.2 (1.0.3.2)

Syntax

C#
public virtual int CompareTo(
	BaseObject obj
)
Visual Basic (Declaration)
Public Overridable Function CompareTo ( _
	obj As BaseObject _
) As Integer
Visual C++
public:
virtual int CompareTo(
	BaseObject^ obj
)

Parameters

obj
Type: Hyleos.Common..::.BaseObject
Object to compare

Return Value

1 if this object is greater than object to compare, 0 if equals, -1 if lesser.

Implements

IComparable<(Of <(T>)>)..::.CompareTo(T)

Remarks

CompareTo is marked as virtual to be overrided if needed

Exceptions

ExceptionCondition
System..::.ArgumentException If object are not of the same type

See Also