ListExtensionsConvertAllT, TOutput Method |
Runs each item through a conversion and returns the produced list.
Namespace: Bio.ExtensionsAssembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax public static List<TOutput> ConvertAll<T, TOutput>(
this IList<T> input,
Func<T, TOutput> converter
)
<ExtensionAttribute>
Public Shared Function ConvertAll(Of T, TOutput) (
input As IList(Of T),
converter As Func(Of T, TOutput)
) As List(Of TOutput)
public:
[ExtensionAttribute]
generic<typename T, typename TOutput>
static List<TOutput>^ ConvertAll(
IList<T>^ input,
Func<T, TOutput>^ converter
)
[<ExtensionAttribute>]
static member ConvertAll :
input : IList<'T> *
converter : Func<'T, 'TOutput> -> List<'TOutput>
Parameters
- input
- Type: System.Collections.GenericIListT
[Missing <param name="input"/> documentation for "M:Bio.Extensions.ListExtensions.ConvertAll``2(System.Collections.Generic.IList{``0},System.Func{``0,``1})"]
- converter
- Type: SystemFuncT, TOutput
[Missing <param name="converter"/> documentation for "M:Bio.Extensions.ListExtensions.ConvertAll``2(System.Collections.Generic.IList{``0},System.Func{``0,``1})"]
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:Bio.Extensions.ListExtensions.ConvertAll``2(System.Collections.Generic.IList{``0},System.Func{``0,``1})"]
- TOutput
[Missing <typeparam name="TOutput"/> documentation for "M:Bio.Extensions.ListExtensions.ConvertAll``2(System.Collections.Generic.IList{``0},System.Func{``0,``1})"]
Return Value
Type:
ListTOutput[Missing <returns> documentation for "M:Bio.Extensions.ListExtensions.ConvertAll``2(System.Collections.Generic.IList{``0},System.Func{``0,``1})"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IListT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also