Skip to content

M_CodeJam_Arithmetic_OperatorsFactory_Comparison__1

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

OperatorsFactory.Comparison(T) Method

Comparison factory method..

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

Syntax

C#

public static Func<T, T, int> Comparison<T>()

VB

Public Shared Function Comparison(Of T) As Func(Of T, T, Integer)

F#

static member Comparison : unit -> Func<'T, 'T, int> 

Type Parameters

 

T
The type of the operands

Return Value

Type: Func(T, T, Int32)
Callback for the comparison

Exceptions

 

Exception Condition
NotSupportedException Type does not implement IComparable nor IComparable{T} interface

See Also

Reference

OperatorsFactory Class
CodeJam.Arithmetic Namespace

Clone this wiki locally