Skip to content

M_CodeJam_Ranges_RangeBoundaryFrom_1_CompareTo_1

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

RangeBoundaryFrom(T).CompareTo Method (RangeBoundaryTo(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(
	RangeBoundaryTo<T> other
)

VB

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

F#

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

Parameters

 

other
Type: CodeJam.Ranges.RangeBoundaryTo(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

RangeBoundaryFrom(T) Structure
CompareTo Overload
CodeJam.Ranges Namespace

Clone this wiki locally