Posts

Showing posts from May, 2015

protobuf-net

  Protocol Buffers is the name of the binary serialization format used by Google for much of their data communications. It is designed to be: small in size - efficient data storage (far smaller than xml) cheap to process - both at the client and server platform independent - portable between different programming architectures extensible - to add new data to old messages. protobuf-net is a .NET implementation of this, allowing you to serialize your .NET objects efficiently and easily. It is compatible with most of the .NET family, including .NET 2.0/3.0/3.5/4.0, .NET CF 2.0/3.5, Mono 2.x, Silverlight, etc. See the following samples where you can use it. Step 1: Install protobuff To install protobuf-net, run the following command in the Package Manager Console PM> Install-Package protobuf-net Step 2: Create the Data Models Unlike XmlSerializer , the member-names are not encoded in the data - instead, you must pick an integer to identify each member. Additionally, to show ...