# RepeatedFieldCopier&lt;T&gt;.DeepCopy(RepeatedField&lt;T&gt;, CopyContext)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization.protobuf/orleans.serialization.repeatedfieldcopier-1/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.serialization.protobuf/orleans.serialization.repeatedfieldcopier-1/methods/)

[Source](https://github.com/dotnet/orleans/blob/1644940b035c7bdf215a4fd7135757c06bcfe9ec/src/Serializers/Orleans.Serialization.Protobuf/RepeatedFieldCopier.cs#L30-L54)

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

Creates a deep copy of the provided input.

### Parameters

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

### Returns

A copy of `input`, or `null` if `input` is `null`.
