LocationCompareTo Method

Compares two ILocations. First id is compared, secondly chainage. This can be used to sort the ILocations, first alphabetically, secondly by chainage.

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public int CompareTo(
	Object obj
)

Parameters

obj  Object
Other ILocation (or Location) to compare to

Return Value

Int32
0 if the same (withing Constants.LOCATION_EQUAL_TOLERANCE), else nonzero.

Implements

IComparableCompareTo(Object)

See Also