ImmutableArrayExtensions::Select<T, TResult> Method (ImmutableArray<T>, Func<T, TResult>^)

 

Projects each element of a sequence into a new form.

Namespace:   System.Linq
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

public:
generic<typename T, typename TResult>
[ExtensionAttribute]
static IEnumerable<TResult>^ Select(
	ImmutableArray<T> immutableArray,
	Func<T, TResult>^ selector
)

Parameters

immutableArray
Type: System.Collections.Immutable::ImmutableArray<T>

The immutable array to select items from.

selector
Type: System::Func<T, TResult>^

A transform function to apply to each element.

Return Value

Type: System.Collections.Generic::IEnumerable<TResult>^

An IEnumerable<T> whose elements are the result of invoking the transform function on each element of source.

Type Parameters

T

The type of element contained by the collection.

TResult

The type of the result element.

Return to top
Show: