-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 2.4.1
-
Component/s: Serialization
-
None
In BsonClassMapSerializer<>.TryGetMemberSerializationInfo(...), the variable nominalType is not used when constructing the BsonSerializationInfo to be returned; serializer.ValueType is used instead.
Using nominalType seems more reasonable, but I'm not certain. If using serializer.ValueType is intended, remove the unused variable; otherwise, use it.