Method ToNativeList
ToNativeList<T>(List<T>, AllocatorHandle)
Returns a copy of this list.
Declaration
public static NativeList<T> ToNativeList<T>(this List<T> list, AllocatorManager.AllocatorHandle allocator) where T : unmanaged
Parameters
Type | Name | Description |
---|---|---|
List<T> | list | The list to copy. |
AllocatorManager.AllocatorHandle | allocator | The allocator to use. |
Returns
Type | Description |
---|---|
NativeList<T> | A copy of this list. |
Type Parameters
Name | Description |
---|---|
T | The type of elements in the list. |