Metsys.Bson - the BSON Library
Posted
on Dot net Slackers
See other posts from Dot net Slackers
Published on Wed, 24 Mar 2010 00:00:00 GMT
Indexed on
2010/03/24
20:43 UTC
Read the original article
Hit count: 328
Filed under:
Earlier this month I detailed the implementation of the bson serialization we used in Norm - the C# MongoDB driver. I've since extracted the serialization/deserialization code and created a standalone project for it - in the hopes that it might prove helpful to someone. If you need an efficient binary protocol to transfer data, look no further.
There are two methods you need to be aware of: Serializer.Serialize and Deserializer.Deserialize.
User u1 = new User{...};
byte[] bytes = Serializer.Serialize(u1);
User...
Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.
© Dot net Slackers or respective owner