Skip to content

M_CodeJam_Ranges_Range_IsValid__1_1

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

Range.IsValid(T) Method (T, T)

Returns true if the boundaries can be used for valid range creation.

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

Syntax

C#

public static bool IsValid<T>(
	T from,
	T to
)

VB

Public Shared Function IsValid(Of T) ( 
	from As T,
	to As T
) As Boolean

F#

static member IsValid : 
        from : 'T * 
        to : 'T -> bool 

Parameters

 

from
Type: T
The value of the boundary From.
to
Type: T
The value of the boundary To.

Type Parameters

 

T
The type of the range values.

Return Value

Type: Boolean
true, if the boundaries can be used for valid range creation.

See Also

Reference

Range Class
IsValid Overload
CodeJam.Ranges Namespace

Clone this wiki locally