Skip to content

M_CodeJam_Ranges_Range_IsValid__1

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

Range.IsValid(T) Method (RangeBoundaryFrom(T), RangeBoundaryTo(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>(
	RangeBoundaryFrom<T> from,
	RangeBoundaryTo<T> to
)

VB

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

F#

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

Parameters

 

from
Type: CodeJam.Ranges.RangeBoundaryFrom(T)
Boundary From.
to
Type: CodeJam.Ranges.RangeBoundaryTo(T)
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