Click or drag to resize

ListExtensionsConvertToArrayT Method

Converts a List to an Array without using Linq

Namespace:  ImmerseSDK.Extensions
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.5.0.0 (3.5.0.0)
Syntax
C#
public static T[] ConvertToArray<T>(
	this List<T> list
)

Parameters

list
Type: System.Collections.GenericListT
List to convert

Type Parameters

T
Type of Array/List

Return Value

Type: T
New array with all the entries from the list

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ListT. 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