Overview
Nerdbank.MessagePack serializes .NET object graphs as MessagePack: simple to use, and fast in both throughput and startup.
Installation
dotnet add package Nerdbank.MessagePack
SignalR, ASP.NET Core MVC and Godot packages are available too. Unity support is also available and requires no additional package.
Highlights
- Serializes with the compact MessagePack format and is among the fastest .NET implementations.
- No attributes required on your data types. Optional attributes customize serialization and improve performance.
- Modern C#, including
requiredandinitproperties,recordtypes, and primary constructors. - Ready for NativeAOT, trimming, SignalR, ASP.NET Core MVC, and Unity.
- Secure by default when deserializing untrusted data.
- Polymorphic unions, streaming deserialization, and partial reads.
See the full list, and how this library compares with others, on the Features page.
Getting started
Getting Started walks through installation, shaping a type, and your first serialize/deserialize round-trip.