Compare two BaseObjectCollection 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(
	BaseObjectCollection<T> obj
)
Visual Basic (Declaration)
Public Overridable Function CompareTo ( _
	obj As BaseObjectCollection(Of T) _
) As Integer
Visual C++
public:
virtual int CompareTo(
	BaseObjectCollection<T>^ obj
)

Parameters

obj
Type: Hyleos.Common..::.BaseObjectCollection<(Of <(T>)>)
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