PolyType 1.1.1
dotnet add package PolyType --version 1.1.1
NuGet\Install-Package PolyType -Version 1.1.1
<PackageReference Include="PolyType" Version="1.1.1" />
<PackageVersion Include="PolyType" Version="1.1.1" />
<PackageReference Include="PolyType" />
paket add PolyType --version 1.1.1
#r "nuget: PolyType, 1.1.1"
#:package PolyType@1.1.1
#addin nuget:?package=PolyType&version=1.1.1
#tool nuget:?package=PolyType&version=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.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.7.2
- System.Memory (>= 4.5.5)
- System.Reflection.Emit.Lightweight (>= 4.7.0)
- System.Runtime.CompilerServices.Unsafe (>= 6.0.0)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
.NETStandard 2.0
- System.Memory (>= 4.5.5)
- System.Reflection.Emit.Lightweight (>= 4.7.0)
- System.Runtime.CompilerServices.Unsafe (>= 6.0.0)
- System.Threading.Tasks.Extensions (>= 4.5.4)
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (6)
Showing the top 5 NuGet packages that depend on PolyType:
| Package | 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. |
|
|
PolyType.TestCases
Practical generic programming for C# |
|
|
PolyType.Examples
Practical generic programming for C# |
|
|
Nerdbank.MessagePack.SignalR
SignalR Hub Protocol implementation using Nerdbank.MessagePack for fast and efficient binary serialization. |
|
|
Nerdbank.MessagePack.AspNetCoreMvcFormatter
ASP.NET Core MVC Input/Output MessagePack formatter using Nerdbank.MessagePack for fast and efficient binary serialization. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on PolyType:
| Repository | Stars |
|---|---|
|
AArnott/Nerdbank.MessagePack
A feature-packed .NET MessagePack serialization library with great performance and simplicity. msgpack.io[C#]
|
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.1 | 41 | 1/22/2026 |
| 1.0.0 | 10,241 | 12/8/2025 |
| 1.0.0-rc.9 | 2,260 | 11/15/2025 |
| 1.0.0-rc.8 | 950 | 11/14/2025 |
| 1.0.0-rc.7 | 6,600 | 10/17/2025 |
| 1.0.0-rc.6 | 509 | 10/10/2025 |
| 1.0.0-rc.5 | 1,099 | 9/29/2025 |
| 1.0.0-rc.4 | 1,140 | 9/23/2025 |
| 1.0.0-rc.3 | 623 | 9/18/2025 |
| 1.0.0-rc.2 | 999 | 9/16/2025 |
| 1.0.0-rc.1 | 279 | 9/16/2025 |