IsUnmanaged
Checks whether the struct or type is unmanaged.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.CoreModule
IsUnmanaged(Type)
Checks whether the struct or type is unmanaged.
public static bool IsUnmanaged(Type type)
Parameters
The of a struct.
System.TypeReturns
Type | Description |
|---|---|
| bool | True if |
Remarks
An unmanaged type contains no managed fields, and can be freely copied in memory.
IsUnmanaged<T>()
Checks whether the struct or type is unmanaged.
public static bool IsUnmanaged<T>()
Returns
Type | Description |
|---|---|
| bool | True if |
Remarks
An unmanaged type contains no managed fields, and can be freely copied in memory.