Click or drag to resize

ExtensionMethodsToListT Method

Convert an Array to a Generic List of type T

Namespace: Scanjour.Workflow4.Base
Assembly: Scanjour.Workflow4.Base (in Scanjour.Workflow4.Base.dll) Version: 24.5.0.0 (24.5.0.0)
Syntax
public static List<T> ToList<T>(
	this Array array
)
where T : class

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

ListT
A 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