Allow [BsonDefaultValue] on member fields as well as properties

XMLWordPrintableJSON

    • None
    • None
    • None
    • None
    • None
    • None
    • None

      [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
            Reporter:
            Zaid Masud
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: