Would you please explain why BsonClassMap.AutoMap() does not map inherited members? What might the possible side effects be of changing this in the source, if any.
The changes I am considering are as follows:
- Removing any instances of BindingFlags.DeclaredOnly, namely in Bson => Serialization => Conventions => MemberFinderConventions and Bson => Serialization => BsonClassMap
- Removing check "if (memberInfo.DeclaringType != _classType)" and ensuing Exception in Bson => Serialization => BsonClassMap
Thanks for any help you can provide.
- related to
-
CSHARP-400 Improve error message in SetIdMember when memberMap argument is for a different class
- Closed