# StackCopier&lt;T&gt;.StackCopier&lt;T&gt;(IDeepCopier&lt;T&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.stackcopier-1/) | [Constructors](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.codecs.stackcopier-1/constructors/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/StackCodec.cs#L126-L136)

```csharp
public StackCopier(IDeepCopier<T> valueCopier)
```

Initializes a new instance of the `Orleans.Serialization.Codecs.StackCopier-1` class.

### Parameters

- `valueCopier` (`IDeepCopier<T>`): The value copier.
