DOFObjectIDCompareTo Method OpenDOF Object Access Library
Compare against another DOFObjectID.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public virtual int CompareTo(
	DOFObjectID objectID
)

Parameters

objectID
Type: org.opendof.core.oalDOFObjectID
The object to compare against. If this is null, will return 1;

Return Value

Type: Int32
  • < 0, if this is lexically less than 'obj'. In this case this object would appear earlier in a sorted list.
  • > 0, if this is lexically greater than 'obj'.
  • 0, if this object matches 'obj'.

Implements

IComparableTCompareTo(T)
Remarks

Compare against another DOFObjectID. This is a lexical comparison.
See Also

Reference