Skip to content

M_CodeJam_Ranges_RangeBoundaryFrom_1_WithValue__1

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

RangeBoundaryFrom(T).WithValue(T2) Method (Func(T, T2))

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

Syntax

C#

public RangeBoundaryFrom<T2> WithValue<T2>(
	Func<T, T2> newValueSelector
)

VB

Public Function WithValue(Of T2) ( 
	newValueSelector As Func(Of T, T2)
) As RangeBoundaryFrom(Of T2)

F#

member WithValue : 
        newValueSelector : Func<'T, 'T2> -> RangeBoundaryFrom<'T2> 

Parameters

 

newValueSelector
Type: System.Func(T, T2)
Callback to obtain a new value for the boundary. Used if the boundary has a value.

Type Parameters

 

T2
The new type of the range value

Return Value

Type: RangeBoundaryFrom(T2)
Range boundary with the same kind but with a new value (if the current boundary has one).

See Also

Reference

RangeBoundaryFrom(T) Structure
WithValue Overload
CodeJam.Ranges Namespace

Clone this wiki locally