ExtensionMethodsToListT Method |
Convert an Array to a Generic List of type T
Namespace: Scanjour.Workflow4.BaseAssembly: Scanjour.Workflow4.Base (in Scanjour.Workflow4.Base.dll) Version: 24.5.0.0 (24.5.0.0)
Syntaxpublic static List<T> ToList<T>(
this Array array
)
where T : class
<ExtensionAttribute>
Public Shared Function ToList(Of T As Class) (
array As Array
) As List(Of T)
public:
[ExtensionAttribute]
generic<typename T>
where T : ref class
static List<T>^ ToList(
Array^ array
)
[<ExtensionAttribute>]
static member ToList :
array : Array -> List<'T> when 'T : not struct
Parameters
- array Array
- The Array to convert to a list of the specified type
Type Parameters
- T
- The type of the elements contained in the converted list
Return Value
ListTA List containing the Array elements, converted to the specified type
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Array. 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