# RepeatedFieldCopier&lt;T&gt; Methods

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

## DeepCopy(RepeatedField&lt;T&gt;, CopyContext) {#deepcopy-google-protobuf-collections-repeatedfield-t-orleans-serialization-cloni-25215e8f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization.protobuf/orleans.serialization.repeatedfieldcopier-1/methods/deepcopy-google-protobuf-collections-repeatedfield-t-orleans-serialization-cloni-25215e8f/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Serializers/Orleans.Serialization.Protobuf/RepeatedFieldCopier.cs#L28-L45)

```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`.

## DeepCopy(RepeatedField&lt;T&gt;, RepeatedField&lt;T&gt;, CopyContext) {#deepcopy-google-protobuf-collections-repeatedfield-t-google-protobuf-collections-d1299136}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization.protobuf/orleans.serialization.repeatedfieldcopier-1/methods/deepcopy-google-protobuf-collections-repeatedfield-t-google-protobuf-collections-d1299136/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Serializers/Orleans.Serialization.Protobuf/RepeatedFieldCopier.cs#L51-L55)

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

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

### Parameters

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