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

BsonClassMap.LookupClassMap supports private constructors inconsistently

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.10.0
    • Fix Version/s: 2.10.2
    • Component/s: Serialization
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change

      Description

      For a derived type with private parameterless constructor, BsonClassMap.LookupClassMap works fine if it introduces new properties, but throws an exception if it does not (example in the attachment). It seems to me the method should work fine in both cases.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dmitry.lukyanov Dmitry Lukyanov
              Reporter:
              andrgenn@gmail.com Gennady Andreev
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: