ConvertAll()

List::ConvertAll(Converter<T, OutputType>) method

Creates a list of elements converted to different type.

template<typename OutputType> SharedPtr<List<OutputType>> System::Collections::Generic::List<T>::ConvertAll(Converter<T, OutputType> converter)

Template parameters

ParameterDescription
OutputTypeOutput list element type.

Arguments

ParameterTypeDescription
converterConverter<T, OutputType>Converter to use for items conversion.

Return Value

A newly created list of converted elements.

See Also