We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ee1590 commit 32eebf9Copy full SHA for 32eebf9
src/FSharp.MongoDB.Bson/Serialization/FSharpTypeHelpers.fs
@@ -102,8 +102,8 @@ module private Helpers =
102
let memberMap = classMap.MapMember(propertyInfo)
103
#if !NETSTANDARD2_1
104
let nrtInfo = nrtContext.Create(propertyInfo)
105
- if nrtInfo.WriteState = NullabilityState.Nullable then
+ if nrtInfo.ReadState = NullabilityState.Nullable then
106
memberMap.SetDefaultValue(objnull) |> ignore
107
#else
108
- ()
+ memberMap.SetDefaultValue(objnull) |> ignore
109
#endif
0 commit comments