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

Add a way to provide serialization attributes to be applied to collection elements

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • 1.4
    • 1.1
    • None
    • None

    Description

      For example:

      public class C {
          public ObjectId Id;
          [BsonDateTimeOptions(Kind = DateTimeKind.Local)] // should be applied to each element of array
          public DateTime[] DateTimes;
      }

      or something similar (not sure what the best design is yet).

      Also need to support all collection types, not just arrays.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: