[CSHARP-46] Support bidirectional serialization of properties of type byte[] Created: 23/Jun/10  Updated: 19/Oct/16  Resolved: 29/Jun/10

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

Type: Improvement Priority: Minor - P4
Reporter: Stuart Harris Assignee: Steve Wagner
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Currently the bson serializer cannot set properties of type byte[]. I also noticed that, in one scenario, it couldn't read a byte[] property successfully either (see http://groups.google.com/group/mongodb-csharp/browse_thread/thread/d9d3079d7ee30ada for more details).
Steve Wagner mentioned that a workaround is to change the property of the domain class to type Binary (which has conversions to and from byte[]). This workaround works and is fine, so this is just a request for the serializer to support byte[] natively.



 Comments   
Comment by Steve Wagner [ 29/Jun/10 ]

Fixed that in my master branch

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