# ListCopier&lt;T&gt; Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.listcopier-1/)

## DeepCopy(List&lt;T&gt;, CopyContext) {#deepcopy-system-collections-generic-list-t-orleans-serialization-cloning-copycon-60757f8f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.listcopier-1/methods/deepcopy-system-collections-generic-list-t-orleans-serialization-cloning-copycon-60757f8f/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/ListCodec.cs#L187-L204)

```csharp
public List<T> DeepCopy(List<T> input, CopyContext context)
```

Creates a deep copy of the provided input.

### Parameters

- `input` (`List<T>`): The input.
- `context` (`CopyContext`): The context.

### Returns

A copy of `input`.

## DeepCopy(List&lt;T&gt;, List&lt;T&gt;, CopyContext) {#deepcopy-system-collections-generic-list-t-system-collections-generic-list-t-orl-0dcdeca8}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.listcopier-1/methods/deepcopy-system-collections-generic-list-t-system-collections-generic-list-t-orl-0dcdeca8/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/ListCodec.cs#L210-L219)

```csharp
public void DeepCopy(List<T> input, List<T> output, CopyContext context)
```

Clones members from `input` and copies them to `output`.

### Parameters

- `input` (`List<T>`): The input.
- `output` (`List<T>`): The output.
- `context` (`CopyContext`): The context.
