Share via


ImmutableList<T>.ConvertAll<TOutput> Yöntem

Tanım

Geçerli sabit listedeki öğeleri başka bir türe dönüştürür ve dönüştürülen öğeleri içeren bir liste döndürür.

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)

Tür Parametreleri

TOutput

Hedef dizinin öğelerinin türü.

Parametreler

converter
Func<T,TOutput>

Her öğeyi bir türden başka bir türe dönüştüren bir temsilci.

Döndürülenler

ImmutableList<TOutput>

Geçerli ImmutableList<T>öğesinden dönüştürülen öğeleri içeren hedef türün listesi.

Şunlara uygulanır