ImmutableList<T>.ConvertAll<TOutput> 方法

定義

將目前不可變清單中的元素轉換為另一種型別,並傳回包含已轉換元素的清單。

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)

類型參數

TOutput

目標陣列項目的類型。

參數

converter
Func<T,TOutput>

可將某一型別的每個元素轉換成另一個型別的委派。

傳回

ImmutableList<TOutput>

目標類型的清單,包含從目前 ImmutableList<T> 中已轉換的項目。

適用於