ArrayConvertAllTInput, TOutput Method |
Converts an array of one type to an array of another type.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static TOutput[] ConvertAll<TInput, TOutput>(
TInput[] array,
Converter<TInput, TOutput> converter
)
Parameters
- array
- Type: TInput
The one-dimensional, zero-based Array to convert to a target type. - converter
- Type: SystemConverterTInput, TOutput
A ConverterTInput, TOutput that converts each element from one type to another type.
Type Parameters
- TInput
- The type of the elements of the source array.
- TOutput
- The type of the elements of the target array.
Return Value
Type:
TOutputAn array of the target type containing the converted elements from the source array.
Exceptions See Also