Edit

Share via


ImmutableList<T>.ConvertAll<TOutput> Method

Definition

Converts the elements in the current immutable list to another type, and returns a list containing the converted elements.

public:
generic <typename TOutput>
 virtual System::Collections::Immutable::ImmutableList<TOutput> ^ ConvertAll(Func<T, TOutput> ^ converter);
public:
generic <typename TOutput>
 System::Collections::Immutable::ImmutableList<TOutput> ^ ConvertAll(Func<T, TOutput> ^ converter);
public System.Collections.Immutable.ImmutableList<TOutput> ConvertAll<TOutput> (Func<T,TOutput> converter);
abstract member ConvertAll : Func<'T, 'Output> -> System.Collections.Immutable.ImmutableList<'Output>
override this.ConvertAll : Func<'T, 'Output> -> System.Collections.Immutable.ImmutableList<'Output>
member this.ConvertAll : Func<'T, 'Output> -> System.Collections.Immutable.ImmutableList<'Output>
Public Function ConvertAll(Of TOutput) (converter As Func(Of T, TOutput)) As ImmutableList(Of TOutput)

Type Parameters

TOutput

The type of the elements of the target array.

Parameters

converter
Func<T,TOutput>

A delegate that converts each element from one type to another type.

Returns

ImmutableList<TOutput>

A list of the target type containing the converted elements from the current ImmutableList<T>.

Applies to