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

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization.FSharp/FSharpCodecs.cs#L49-L59)

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

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

### Parameters

- `fieldCodec` (`IFieldCodec<T>`)
