Skip to content

M_CodeJam_Ranges_Range_TryCreateExclusive__2

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

Range.TryCreateExclusive(T, TKey) Method (T, T, TKey)

Tries to create the range. Returnss empty range if failed.

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

Syntax

C#

public static Range<T, TKey> TryCreateExclusive<T, TKey>(
	T fromValue,
	T toValue,
	TKey key
)

VB

Public Shared Function TryCreateExclusive(Of T, TKey) ( 
	fromValue As T,
	toValue As T,
	key As TKey
) As Range(Of T, TKey)

F#

static member TryCreateExclusive : 
        fromValue : 'T * 
        toValue : 'T * 
        key : 'TKey -> Range<'T, 'TKey> 

Parameters

 

fromValue
Type: T
The value of the boundary From exclusive.
toValue
Type: T
The value of the boundary To exclusive.
key
Type: TKey
The value of the range key.

Type Parameters

 

T
The type of the range values.
TKey
The type of the range key

Return Value

Type: Range(T, TKey)
A new range or empty range if the boundaries forms invalid range.

See Also

Reference

Range Class
TryCreateExclusive Overload
CodeJam.Ranges Namespace

Clone this wiki locally