ListExtensions.Map<TInput, TOutput>
Extension Method in ListExtensions
Declaration
public static List<TOutput> Map<TInput, TOutput>(this List<TInput> list, Converter<TInput, TOutput> converter)
Description
Maps the items of the list to a new list using a converter function.
Type Parameters
TInput | The type of the input list. |
TOutput | The type of the output list. |
Parameters
list | The list to map. |
converter | The converter to use. |
Returns
ListT | A new list with the converted items. |