Details
-
New Feature
-
Resolution: Done
-
Unknown
-
2.18.0
-
None
Description
BsonClassMap does not support deserializing structs because of boxing.
But boxing is only really an issue when trying to set property values (because the value is set on a boxed value that gets thrown away).
But if a struct provides the proper constructor(s) BsonClassMap can be modified to support deserializing structs using a constructor, as opposed to trying to set property values.
Attachments
Issue Links
- is depended on by
-
CSHARP-1326 Grouping mongodb filtered results by reference id throws
-
- Closed
-
- related to
-
CSHARP-4392 Consider specialized subclasses of BsonClassMapSerializers
-
- Backlog
-