Implements CompareTo function from IComparable interface to sort Bond in a List. Override base function using attached Atom1 and Atom2 index

Namespace:  Hyleos.Chemistry
Assembly:  Hyleos.Chemistry (in Hyleos.Chemistry.dll) Version: 1.0.9.4 (1.0.9.4)

Syntax

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

Parameters

obj
Type: Hyleos.Common..::.BaseObject
Bond object to be compae with

Return Value

0 if equals, 1 if This.Index is greater than o.index otherwise -1

Implements

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

See Also