Whetstone Class reference
Whetstone Class reference
Whetstone
WhetStone Namespaces
WhetStone.Looping
select Class
select Methods
Select Method
Select(T, R) Method (ICollection(T), Func(T, R))
Select(T, R0, R1) Method (IDictionary(T, R0), Func(R0, R1))
Select(T, R) Method (IList(T), Func(T, R))
Select(T, R) Method (ICollection(T), Func(T, R), Func(R, T))
Select(T, R) Method (IList(T), Func(T, R), Func(R, T))
Select(K0, K1, R0, R1) Method (IDictionary(K0, R0), Func(K0, K1), Func(K1, K0), Func(R0, R1), Func(R1, R0))
select
Select
T
,
R
Method (IList
T
, Func
T
,
R
)
Get a 1-1 mapping of an
IList
T
.
Namespace:
WhetStone.Looping
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
Copy
public
static
IList
<R>
Select
<T, R>(
this
IList
<T>
this
,
Func
<T, R>
selector
)
Parameters
this
Type:
System.Collections.Generic
IList
T
The
IList
T
to map.
selector
Type:
System
Func
T
,
R
The mapping function.
Type Parameters
T
The type of the original
IList
T
.
R
The type of the returned
IList
T
.
Return Value
Type:
IList
R
A read-only
IList
T
with
selector
applied on
this
's elements.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IList
T
. 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
Reference
select Class
Select Overload
WhetStone.Looping Namespace