Method CopyTo
CopyTo<T>(List<T>, void*, int)
Extension method to copy elements of a list into a buffer.
Declaration
public static void CopyTo<T>(this List<T> list, void* dest, int count) where T : struct
Parameters
Type | Name | Description |
---|---|---|
List<T> | list | Input List. |
void* | dest | Destination buffer. |
int | count | Number of elements to copy. |
Type Parameters
Name | Description |
---|---|
T | Type of the provided List. |
CopyTo<T>(T[], void*, int)
Extension method to copy elements of an array into a buffer.
Declaration
public static void CopyTo<T>(this T[] list, void* dest, int count) where T : struct
Parameters
Type | Name | Description |
---|---|---|
T[] | list | Input List. |
void* | dest | Destination buffer. |
int | count | Number of elements to copy. |
Type Parameters
Name | Description |
---|---|
T | Type of the provided array. |