Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-396

BsonClassMap.AutoMap() does not incorporate inheritance.

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

      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@mongodb.com Robert Stam
            Reporter:
            rposky Robert Poskevich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: