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

Allow [BsonDefaultValue] on member fields as well as properties

      [BsonDefaultValue] is only valid on properties.

      However, since fields can be serialized using [BsonElement], it would make sense to allow [BsonDefaultValue] on fields as well, and use the specified default value in deserialization when none is available.

            Assignee:
            Unassigned Unassigned
            Reporter:
            zaidmasud Zaid Masud
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: