Skip to content

About

A .NET library to automatically setup protobuf serializations on types without the need to use attributes

Resources

Stars

18 stars

Watchers

4 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoProtobuf

A .NET library to automatically setup protobuf serializations on types without the need to use attributes.

##Usage

Simply call the following once in your process before serializing with ProtoBuf:

SerializerBuilder.Build(complexClass);

If the class already has a serializer generated, the call does nothing.

##What can it do?

Generates serializers for any type protobuf-net can serialize. It does this by calling protobuf-net's RuntimeTypeModel and adding all fields to the serializaton model for each class.

It will navigate an object's inheritance tree so that inherited fields are also serialized properly.

##Known limitations Because ProtoBuf-net needs to have the inheritance tree defined all at once, the serializer builder will fail when called for an object that inherits from the same concrete base class as a previously built object. In such a case use ProtoBuf-net attributes.

Doesn't works with DataTables, please use protobuf-net-data for serializing those.

This is also a very early release so use with caution.

About

A .NET library to automatically setup protobuf serializations on types without the need to use attributes

Resources

Stars

18 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages