Click or drag to resize
ArrayConvertAllTInput, TOutput Method
Converts an array of one type to an array of another type.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
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: TOutput
An array of the target type containing the converted elements from the source array.
Exceptions
ExceptionCondition
ArgumentNullExceptionarray is null.-or-converter is null.
See Also