| JobsUtilitiesTryDeallocateT Method |
Disposes of a NativeArray if it has been created.
Namespace:
DustProductions.Core
Assembly:
DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static bool TryDeallocate<T>(
this NativeArray<T> nativeArray
)
where T : struct, new()
Parameters
- nativeArray
- Type: NativeArrayT
The NativeArray to dispose.
Type Parameters
- T
- The type of struct in the NativeArray.
Return Value
Type:
BooleanTrue if the NativeArray is destroyed, false otherwise.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
NativeArrayT. 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