-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Ranges_Range_TryCreateExclusiveTo__2
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, TKey> TryCreateExclusiveTo<T, TKey>(
T fromValue,
T toValue,
TKey key
)
VB
Public Shared Function TryCreateExclusiveTo(Of T, TKey) (
fromValue As T,
toValue As T,
key As TKey
) As Range(Of T, TKey)
F#
static member TryCreateExclusiveTo :
fromValue : 'T *
toValue : 'T *
key : 'TKey -> Range<'T, 'TKey>
- fromValue
- Type: T
The value of the boundary From inclusive. - toValue
- Type: T
The value of the boundary To exclusive. - key
- Type: TKey
The value of the range key.
- T
- The type of the range values.
- TKey
- The type of the range key
Type: Range(T, TKey)
A new range or empty range if the boundaries forms invalid range.
Range Class
TryCreateExclusiveTo Overload
CodeJam.Ranges Namespace