# CopyFrom(in ReadOnlySpan<T>)

> Copies all elements of specified container to this container.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

## CopyFrom(ReadOnlySpan\<T>)

```csharp
public void CopyFrom(in ReadOnlySpan<T> other)
```

### Parameters

**** (\[ReadOnlySpan\<T>]\(https\://learn.microsoft.com/dotnet/api/system.readonlyspan-1)): An container to copy into this container.
