Skip to content

M_CodeJam_Ranges_CompositeRange_2_WithKeys__1

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

CompositeRange(T, TKey).WithKeys(TKey2) Method (Func(TKey, TKey2))

Creates a new composite range with the key specified.

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

Syntax

C#

public CompositeRange<T, TKey2> WithKeys<TKey2>(
	Func<TKey, TKey2> keySelector
)

VB

Public Function WithKeys(Of TKey2) ( 
	keySelector As Func(Of TKey, TKey2)
) As CompositeRange(Of T, TKey2)

F#

member WithKeys : 
        keySelector : Func<'TKey, 'TKey2> -> CompositeRange<'T, 'TKey2> 

Parameters

 

keySelector
Type: System.Func(TKey, TKey2)
Callback to obtain a value for the range key.

Type Parameters

 

TKey2
The type of the new key.

Return Value

Type: CompositeRange(T, TKey2)
A new composite range with the key specified.

See Also

Reference

CompositeRange(T, TKey) Structure
WithKeys Overload
CodeJam.Ranges Namespace

Clone this wiki locally