Click or drag to resize
Ranorex

ExtensionMethodsConvertAllT, TOutput Method

Converts the items returned by enumerable to another type, and returns a list containing the converted elements.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static List<TOutput> ConvertAll<T, TOutput>(
	IEnumerable<T> enumerable,
	Converter<T, TOutput> converter
)

Parameters

enumerable
Type: System.Collections.GenericIEnumerableT
An IEnumerableT instance.
converter
Type: SystemConverterT, TOutput
A delegate that converts each element to another type.

Type Parameters

T
The type of the items returned by enumerable.
TOutput
The type of the converted items in the returned list.

Return Value

Type: ListTOutput
A list containing the converted items.
See Also