ImmutableList<T>.ConvertAll<TOutput> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts the elements in the current immutable list to another type, and returns a list containing the converted elements.
public:
generic <typename TOutput>
virtual System::Collections::Immutable::ImmutableList<TOutput> ^ ConvertAll(Func<T, TOutput> ^ converter);
public:
generic <typename TOutput>
System::Collections::Immutable::ImmutableList<TOutput> ^ ConvertAll(Func<T, TOutput> ^ converter);
public System.Collections.Immutable.ImmutableList<TOutput> ConvertAll<TOutput> (Func<T,TOutput> converter);
abstract member ConvertAll : Func<'T, 'Output> -> System.Collections.Immutable.ImmutableList<'Output>
override this.ConvertAll : Func<'T, 'Output> -> System.Collections.Immutable.ImmutableList<'Output>
member this.ConvertAll : Func<'T, 'Output> -> System.Collections.Immutable.ImmutableList<'Output>
Public Function ConvertAll(Of TOutput) (converter As Func(Of T, TOutput)) As ImmutableList(Of TOutput)
Type Parameters
- TOutput
The type of the elements of the target array.
Parameters
- converter
- Func<T,TOutput>
A delegate that converts each element from one type to another type.
Returns
ImmutableList<TOutput>
A list of the target type containing the converted elements from the current ImmutableList<T>.