Click or drag to resize

selectSelectK0, K1, R0, R1 Method (IDictionaryK0, R0, FuncK0, K1, FuncK1, K0, FuncR0, R1, FuncR1, R0)

Namespace:  WhetStone.Looping
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static IDictionary<K1, R1> Select<K0, K1, R0, R1>(
	this IDictionary<K0, R0> this,
	Func<K0, K1> keyMapper,
	Func<K1, K0> keyInverse,
	Func<R0, R1> valueMapper,
	Func<R1, R0> valueInverse = null
)

Parameters

this
Type: System.Collections.GenericIDictionaryK0, R0
The IDictionaryTKey, TValue to map.
keyMapper
Type: SystemFuncK0, K1
The original->new key mapper.
keyInverse
Type: SystemFuncK1, K0
The new->original key mapper.
valueMapper
Type: SystemFuncR0, R1
The original->new value mapper.
valueInverse (Optional)
Type: SystemFuncR1, R0
The new->original value mapper. If , the resultant IDictionaryTKey, TValue cannot be assigned new values.

Type Parameters

K0
The original key type.
K1
The new key type.
R0
The original value type.
R1
The new value type.

Return Value

Type: IDictionaryK1, R1
A mutability-passing IDictionaryTKey, TValue with keyMapper and valueMapper applied to this's elements.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDictionaryK0, R0. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also