System::Collections::Generic::List::ConvertAll 方法

List::ConvertAll method

创建一个元素已转换为不同类型的列表。

template<typename OutputType> SharedPtr<List<OutputType>> System::Collections::Generic::List<T>::ConvertAll(Converter<T, OutputType> converter)
参数描述
OutputType输出列表元素类型。
参数类型描述
converterConverter<T, OutputType>Converter 用于项目转换。

ReturnValue

一个新创建的已转换元素列表。

另见