NodaTime support for protobuf-net: serializes Instant, Duration etc as the protobuf well-known types
Install
| Product | Versions |
|---|---|
| .NET | |
| .NET Standard |
README
protobuf-net.NodaTime
NodaTime support for protobuf-net:
Instant, Duration, LocalDate, LocalTime and IsoDayOfWeek serialize as the matching protobuf
well-known and google.type messages, so the payloads interoperate with other protobuf implementations.
With a compile-time model ([ProtoModel], as used for
native AOT), there is nothing to register: this package declares the
pairings at assembly level, so any generated model in a project that references it picks them up.
For the runtime model, register them once:
RuntimeTypeModel.Default.AddNodaTime();
Conversions between the two worlds are also available directly, via NodaTimeExtensions.
More
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.