# ExceptionCopier&lt;T, B&gt;.DeepCopy(T, T, CopyContext)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.generatedcodehelpers.orleansgeneratedcodehelper.exceptioncopier-2/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.generatedcodehelpers.orleansgeneratedcodehelper.exceptioncopier-2/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/GeneratedCodeHelpers/OrleansGeneratedCodeHelper.cs#L323)

```csharp
public virtual void ExceptionCopier<T, DeepCopy(T input, T output, CopyContext context)
```

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

### Parameters

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