Deserializing to enum option in F#
问题 A couple days ago, I posted a question about deserialization with enums in F#. The question is here: Deserialization in F# vs. C# The answer pointed to some code written by Isaac Abraham, at: https://gist.github.com/isaacabraham/ba679f285bfd15d2f53e However I am facing another problem: If the object to deserialize to has an object of type 'enum option', the deserialization will fail, whereas it'll work if the type is just 'enum'. A minimal example: type TestType = | A = 0 | B = 1 type