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

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.4
    • Affects Version/s: 1.1
    • Component/s: None
    • None

      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.

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

              Created:
              Updated:
              Resolved: