ListTConvertAllTOutput Method |
Converts the elements in the current
ListT to another type, and returns a list containing the converted elements.
Namespace: System.Collections.GenericAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public List<TOutput> ConvertAll<TOutput>(
Converter<T, TOutput> converter
)
Parameters
- converter
- Type: SystemConverterT, TOutput
A ConverterTInput, TOutput delegate that converts each element from one type to another type.
Type Parameters
- TOutput
- The type of the elements of the target array.
Return Value
Type:
ListTOutputA
ListT of the target type containing the converted elements from the current
ListT.
Exceptions See Also