- 
                Notifications
    You must be signed in to change notification settings 
- Fork 35
M_CodeJam_Ranges_Range_TryCreate__1
        Andrew Koryavchenko edited this page Jun 17, 2018 
        ·
        3 revisions
      
    Tries to create the range. Returns empty range if failed.
Namespace: CodeJam.Ranges
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static Range<T> TryCreate<T>(
	RangeBoundaryFrom<T> from,
	RangeBoundaryTo<T> to
)VB
Public Shared Function TryCreate(Of T) ( 
	from As RangeBoundaryFrom(Of T),
	to As RangeBoundaryTo(Of T)
) As Range(Of T)F#
static member TryCreate : 
        from : RangeBoundaryFrom<'T> * 
        to : RangeBoundaryTo<'T> -> Range<'T> 
- from
- Type: CodeJam.Ranges.RangeBoundaryFrom(T)
 Boundary From.
- to
- Type: CodeJam.Ranges.RangeBoundaryTo(T)
 Boundary To.
- T
- The type of the range values.
Type: Range(T)
A new range or empty range if the boundaries forms invalid range.