[CSHARP-933] Improve IBsonSerializer design Created: 20/Mar/14  Updated: 02/Apr/15  Resolved: 29/Apr/14

Status: Closed
Project: C# Driver
Component/s: BSON
Affects Version/s: 2.0
Fix Version/s: 2.0

Type: Improvement Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CSHARP-539 Support C# dynamic type Closed

 Description   

Make the following changes to IBsonSerializer:

1. Add a context parameter to Deserialize/Serialize
2. Consolidate current parameters (except value) into context
3. Add properties to the context to support serializing C# dynamic values
4. Add a IBsonSerializer<T> generic interface
5. Move serialization options to be properties of the serializers themselves



 Comments   
Comment by Githook User [ 07/May/14 ]

Author:

{u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-933: Add support to JsonReader to read from a TextReader.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/61f0fbfa1d292acb4558dd5f98241db0e22a8552

Comment by Githook User [ 03/May/14 ]

Author:

{u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-933: Rename TopLevelDocument to Document in BsonDocumentWriter.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/e0d54426813805e4adf7f92e4568c94ec873500a

Comment by Githook User [ 03/May/14 ]

Author:

{u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-933: Removed obsolete ReadFrom and WriteTo methods from BsonDocument.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/229b9f13f4465c25269030dc47b424c9a431b764

Comment by Githook User [ 03/May/14 ]

Author:

{u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-933: Remove Create methods from BsonReader and BsonWriter.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/82c4b21d3d95fa4ddbbe27ea2835a2961d6e1152

Comment by Githook User [ 02/May/14 ]

Author:

{u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-933: Removed IBsonSerializationOptions as it is no longer used.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/b4bac418ec6f310a793662c877db05d42baacfcd

Comment by Githook User [ 02/May/14 ]

Author:

{u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-933: Reduce the number of places nulls, actual types and discriminators are handled.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/060c21807c7bb921bf36e08801554aaaa44abfd6

Comment by Githook User [ 29/Apr/14 ]

Author:

{u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-933: Remove CloseInput and CloseOutput from BsonReader/Writer settings.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/9a48045706b0fdadce8c7a8223229f26fbe9c22e

Comment by Githook User [ 29/Apr/14 ]

Author:

{u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-933: Code review changes.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/9abd34bb02f83ee0e18e68c11d8e8fd038a65093

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