-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Ranges_RangeBoundaryTo_1_WithValue__1
Andrew Koryavchenko edited this page Jun 17, 2018
·
3 revisions
Creates a new boundary with updated value (if the current boundary has one). If the boundary has no value the method returns the boundary unchanged.
Namespace: CodeJam.Ranges
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public RangeBoundaryTo<T2> WithValue<T2>(
Func<T, T2> newValueSelector
)
VB
Public Function WithValue(Of T2) (
newValueSelector As Func(Of T, T2)
) As RangeBoundaryTo(Of T2)
F#
member WithValue :
newValueSelector : Func<'T, 'T2> -> RangeBoundaryTo<'T2>
- newValueSelector
- Type: System.Func(T, T2)
Callback to obtain a new value for the boundary. Used if the boundary has a value.
- T2
- The new type of the range value
Type: RangeBoundaryTo(T2)
Range boundary with the same kind but with a new value (if the current boundary has one).
RangeBoundaryTo(T) Structure
WithValue Overload
CodeJam.Ranges Namespace