Click or drag to resize

LocationCompareTo Method

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

Namespace:  DHI.Mike1D.Generic
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public int CompareTo(
	Object obj
)

Parameters

obj
Type: SystemObject
Other ILocation (or Location) to compare to

Return Value

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

Implements

IComparableCompareTo(Object)
See Also