BsonClassMap.AutoMap() does not incorporate inheritance.

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 1.4
    • Affects Version/s: 1.3.1
    • Component/s: None
    • Environment:
      Mono 2.10.8
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Robert Stam
              Reporter:
              Robert Poskevich
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: