Skip to content

M_CodeJam_Ranges_Range_2_WithValues__1_1

Andrew Koryavchenko edited this page Jun 17, 2018 · 1 revision

Range(T, TKey).WithValues(T2) Method (Func(T, T2), Func(T, T2))

Updates the values of the boundaries of the range.

Namespace: CodeJam.Ranges
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public Range<T2, TKey> WithValues<T2>(
	Func<T, T2> fromValueSelector,
	Func<T, T2> toValueSelector
)

VB

Public Function WithValues(Of T2) ( 
	fromValueSelector As Func(Of T, T2),
	toValueSelector As Func(Of T, T2)
) As Range(Of T2, TKey)

F#

member WithValues : 
        fromValueSelector : Func<'T, 'T2> * 
        toValueSelector : Func<'T, 'T2> -> Range<'T2, 'TKey> 

Parameters

 

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

Type Parameters

 

T2
The type of new range values.

Return Value

Type: Range(T2, TKey)
A range with new values.

See Also

Reference

Range(T, TKey) Structure
WithValues Overload
CodeJam.Ranges Namespace

Clone this wiki locally