Skip to main content
net10.0.NETFramework4.7.2.NETStandard2.0

Practical generic programming for C#

Published
Oct 5, 2026
17d ago
Total Downloads
11.5M
11,520,809

Install

dotnet add package PolyType --version 2.0.0-rc.1
ProductVersions
.NET
net10.0
.NET Standard
netstandard2.0
Other
.NETFramework4.7.2

README

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.

Changes from Previous Version

v1.4.1v2.0.0-rc.1
Removed Frameworks
net8.0net9.0

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.