# GetDynamicComponentDataArrayReinterpret<T>(ref DynamicComponentTypeHandle, int)

> Construct a NativeArray view of a chunk's component data.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

## GetDynamicComponentDataArrayReinterpret\<T>(DynamicComponentTypeHandle, int)

```csharp
public readonly NativeArray<T> GetDynamicComponentDataArrayReinterpret<T>(ref DynamicComponentTypeHandle typeHandle, int expectedTypeSize) where T : struct
```

### Parameters

**** (\[DynamicComponentTypeHandle]\(/engine/7000.0/script-reference/unity/entities/dynamiccomponenttypehandle)): Type handle for the target component type**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The expected size (in bytes) of the target component type. It is an error to pass a size that does not match the target type's actual size.

### Returns

| Type                                                                                 | Description                                                                                                                                                               |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [NativeArray\<T>](/engine/7000.0/script-reference/unity/collections/nativearray1.md) | A NativeArray which aliases the chunk's component value array for type `T`. The array does not own this data, and does not need to be disposed when it goes out of scope. |
