Skip to content

M_CodeJam_Ranges_RangeBoundaryTo_1_CompareTo_2

Andrew Koryavchenko edited this page Jun 17, 2018 · 3 revisions

RangeBoundaryTo(T).CompareTo Method (T)

Compares the current boundary with the value of another To boundary. Following order is used: '∅' < '+∞' < 'a)' < '[a' == 'a]' < '(a' < '-∞'.

Namespace: CodeJam.Ranges
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public int CompareTo(
	T other
)

VB

Public Function CompareTo ( 
	other As T
) As Integer

F#

abstract CompareTo : 
        other : 'T -> int 
override CompareTo : 
        other : 'T -> int 

Parameters

 

other
Type: T
Boundary value to compare with this.

Return Value

Type: Int32
A value that indicates the relative order of the objects being compared. The return value has the following meanings: * Less than zero This object is less than the other parameter. * Zero This object is equal to other. * Greater than zero This object is greater than other.

Implements

IComparable(T).CompareTo(T)

See Also

Reference

RangeBoundaryTo(T) Structure
CompareTo Overload
CodeJam.Ranges Namespace

Clone this wiki locally