# CollectionCodec&lt;T&gt;.CollectionCodec&lt;T&gt;(IFieldCodec&lt;T&gt;)

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Codecs/CollectionCodec.cs#L22-L33)

```csharp
public CollectionCodec(IFieldCodec<T> fieldCodec)
```

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

### Parameters

- `fieldCodec` (`IFieldCodec<T>`): The field codec.
