Operator implicit operator
implicit operator NativeArray<T>(NativeList<T>)
Obsolete. Use AsArray() method to do explicit cast instead.
Declaration
[Obsolete("Implicit cast from `NativeList<T>` to `NativeArray<T>` has been deprecated; Use '.AsArray()' method to do explicit cast instead.", false)]
public static implicit operator NativeArray<T>(NativeList<T> nativeList)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeList<T> | nativeList | The list to alias. |
Returns
| Type | Description |
|---|---|
| NativeArray<T> | A native array that aliases the content of the list. |
Remarks
Returns a native array that aliases the content of a list.