F# record with option field doesn't deserialize properly in Asp.Net WebApi 2.x app
问题 I have a C# Asp.Net MVC (5.2.7) app with support for WebApi 2.x targeting .Net 4.5.1. I am experimenting with F# and I added an F# library project to the solution. The web app references the F# library. Now, I want to be able to have the C# WebApi controller return F# objects and also save F# objects. I have trouble serializing a F# record with an Option field. Here is the code: C# WebApi controller: using System; using System.Collections.Generic; using System.Linq; using System.Net; using