ImmutableList<T>.ConvertAll<TOutput> Metoda

Definicja

Konwertuje elementy na bieżącej liście niezmiennej na inny typ i zwraca listę zawierającą przekonwertowane elementy.

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)

Parametry typu

TOutput

Typ elementów tablicy docelowej.

Parametry

converter
Func<T,TOutput>

Delegat, który konwertuje każdy element z jednego typu na inny typ.

Zwraca

ImmutableList<TOutput>

Lista typu docelowego zawierającego przekonwertowane elementy z bieżącego ImmutableList<T>elementu .

Dotyczy