[CSHARP-284] Add a way to provide serialization attributes to be applied to collection elements Created: 26/Jul/11  Updated: 02/Apr/15  Resolved: 15/Mar/12

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.1
Fix Version/s: 1.4

Type: New Feature Priority: Minor - P4
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Duplicate Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by CSHARP-376 Use IBsonSerializationOptions in Dese... Closed
is duplicated by CSHARP-308 Support serialization options for Arr... Closed

 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.



 Comments   
Comment by Robert Stam [ 15/Mar/12 ]

Closing as a duplicate of CSHARP-308. Track CSHARP-308 instead.

Comment by Robert Stam [ 26/Jul/11 ]

Should be generalized to all collection types.

Generated at Wed Feb 07 21:36:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.