# NullableCopier&lt;T&gt;.DeepCopy(T?, CopyContext)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/NullableCodec.cs#L86)

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

Creates a deep copy of the provided input.

### Parameters

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

### Returns

A copy of `input`.
