PolyType 1.1.1

PolyType

PolyType is a practical generic programming library for .NET. It facilitates the rapid development of feature-complete, high-performance libraries that interact with user-defined types. This includes serializers, structured loggers, mappers, validators, parsers, random generators, and equality comparers. Its built-in source generator ensures that any library built on top of PolyType gets Native AOT support for free.

The project is a port of the TypeShape library for F#, adapted to patterns and idioms available in C#. The name PolyType is a reference to polytypic programming, another term for generic programming.

See the project website for additional background and API documentation.

Showing the top 20 packages that depend on PolyType.

Packages Downloads
Nerdbank.MessagePack
A fast and more user-friendly MessagePack serialization library for .NET and .NET Framework. This package is brought to you by one of the two major contributors to MessagePack-CSharp. As its natural successor, this library comes packed with features that its predecessor lacks, and has ongoing support. Premium support for trimming and Native AOT, secure deserialization of untrusted data, async serialization, streaming deserialization, skip serializing of default values, reference preservation, and support for reference cycles. Also features an automatic structural equality API.
5
Nerdbank.MessagePack
A fast and more user-friendly MessagePack serialization library for .NET and .NET Framework. This package is brought to you by one of the two major contributors to MessagePack-CSharp. As its natural successor, this library comes packed with features that its predecessor lacks, and has ongoing support. Premium support for trimming and Native AOT, secure deserialization of untrusted data, async serialization, streaming deserialization, skip serializing of default values, reference preservation, and support for reference cycles. Also features an automatic structural equality API.
2
Nerdbank.MessagePack
A fast and more user-friendly MessagePack serialization library for .NET and .NET Framework. This package is brought to you by one of the two major contributors to MessagePack-CSharp. As its natural successor, this library comes packed with features that its predecessor lacks, and has ongoing support. Premium support for trimming and Native AOT, secure deserialization of untrusted data, async serialization, streaming deserialization, skip serializing of default values, reference preservation, and support for reference cycles. Also features an automatic structural equality API.
1

.NET Framework 4.7.2

.NET 8.0

  • No dependencies.

.NET 9.0

  • No dependencies.

.NET 10.0

  • No dependencies.

.NET Standard 2.0

Version Downloads Last updated
1.1.1 2 01/23/2026
1.0.0 1 01/23/2026
1.0.0-rc.9 1 01/23/2026
1.0.0-rc.8 1 01/23/2026
1.0.0-rc.7 1 01/23/2026
1.0.0-rc.6 1 01/23/2026
1.0.0-rc.5 2 01/23/2026
1.0.0-rc.4 1 01/23/2026
1.0.0-rc.3 1 01/23/2026
1.0.0-rc.2 1 01/23/2026
1.0.0-rc.1 1 01/23/2026