 | 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
Syntaxpublic static List<TOutput> ConvertAll<T, TOutput>(
IEnumerable<T> enumerable,
Converter<T, TOutput> converter
)
Public Shared Function ConvertAll(Of T, TOutput) (
enumerable As IEnumerable(Of T),
converter As Converter(Of T, TOutput)
) As List(Of TOutput)
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:
ListTOutputA list containing the converted items.
See Also