Skip to content

M_CodeJam_Ranges_RangeBoundaryTo_1_CompareTo

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

RangeBoundaryTo(T).CompareTo Method (RangeBoundaryFrom(T))

Compares the current boundary with another one. 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(
	RangeBoundaryFrom<T> other
)

VB

Public Function CompareTo ( 
	other As RangeBoundaryFrom(Of T)
) As Integer

F#

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

Parameters

 

other
Type: CodeJam.Ranges.RangeBoundaryFrom(T)
Boundary 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