AqlaSerializer is intended to serialize objects, not just data.
What the difference? Data serializers don't care much about language runtime specifics like references, inheritance, etc. In contrast, an object serializer should take such things into account.
AqlaSerializer primary goal is to support important .NET features like nested collections, multi-dimensional arrays, references, etc. And it still supports Google Protocol Buffers format.
Like protobuf-net AqlaSerializer makes possible to store objects as a small in size binary data (far smaller than xml). And it's more CPU effective than BinaryFormatter and other core .NET serializers (which could be unavailable on your target platform). Its format 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.
The implementation is compatible with most of the .NET family, including .NET 2.0/3.0/3.5/4.0, Windows Phone 8, Silverlight, etc. The code is heavily based on Marc Gravell's protobuf-net but there are a lot of improvements and fixes.
The original protobuf-net project contains many "red" unit tests but I managed to fix a lot of them.
Some build configurations may be not available through nuget, you can download their binaries manually from github (use Project Site link).
See the version list below for details.
Install-Package aqlaserializer -Version 220.127.116.11
dotnet add package aqlaserializer --version 18.104.22.168
<PackageReference Include="aqlaserializer" Version="22.214.171.124" />
paket add aqlaserializer --version 126.96.36.199
#r "nuget: aqlaserializer, 188.8.131.52"
// Install aqlaserializer as a Cake Addin #addin nuget:?package=aqlaserializer&version=184.108.40.206 // Install aqlaserializer as a Cake Tool #tool nuget:?package=aqlaserializer&version=220.127.116.11
* 18.104.22.168: V2 RC2
- Removing field won't break reference tracking.
* 22.214.171.124: V2 RC
- Google Protocol Buffers format support is back (I've reconsidered this) - (de)serialization.
- Nested collections.
- Multi-dimensional arrays.
- Improved reference tracking (e.g. surrogate fix and referencing arrays from inside themselves).
- Improved versioning (e.g. between reference-nonreference-null-nonnull-dynamic).
- Optimizations for better output size.
- Collection subtypes (will read subtype number to create correct concrete type).
- Array types may be registered as collections and use full set of features (null support, etc) even when passed as root objects.
- Primitive types are allowed to be set to fields marked as dynamic type.
- Reference serialization will avoid using too much recursion in LateReference mode.
- Possibility to specify different attribute sets for different models (see ModelId property on attributes).
- Attributes to specify behavior on collection and collection elements (and nested) separately.
- Significant performance improvements.
- more effficient memory usage
- if writing stream CanSeek and CanRead the serializer may use it as a buffer when its own buffer grows too big
* 126.96.36.1998: merged changes from the fork origin (except DNX)
* 188.8.131.523: fixed AsReferenceDefault correct usage for legacy protobuf-net attributes
- fixed issue when surrogated value was not correctly reference tracked
- add method is recognized not only on IEnumerable<T> but also on its inheritors like IReadOnlyCollection<T>
* 184.108.40.2067 - improvements in list handling, merged changes from original protobuf-net
* 220.127.116.11 - initial AqlaSerializer release
- aqla.runsharp (>= 18.104.22.168)
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.