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

Problems using NeverSerializeDefaultValueConvention

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.3
    • 1.1
    • None
    • None

    Description

      The attached program should have worked. At the very least there is a usability concern about how to correctly use NeverSerializeDefaultValueConvention, but I think there are also one or more minor bugs lurking (in particular, setting the default value forces SerializeDefaultValue to true overriding the value provided by the convention).

      See also: https://groups.google.com/group/mongodb-user/browse_thread/thread/8ee0a96225e22c4b#

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            robert@mongodb.com Robert Stam
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: