Simple way to serialize and deserialize polymorphic types for Json.NET
-
Updated
Mar 4, 2025 - C#
Simple way to serialize and deserialize polymorphic types for Json.NET
Unity project where I use the SerializeReference attribute to make a custom editor with a reorderable list of polymorphic, non Unity objects.
CacheManager extension package providing polymorphic (de)serialization support using Hyperion for distributed caches. The Hyperion serializer can be used in place of the default Binary Serializer.
Polymorphism for structs by the help of Source Generator. Based on PhilSA PolymorphicStructs.
🔬 Proof of Concept of Auto Mapper inheritance (polymorphic) and JSON serialization
A polymorphic model binder for ASP.NET Core. Bind to the type you want!
A polymorphic labeling system for EF Core: one label, attached to any entity type - and every link is backed by a real foreign key, so orphan rows are impossible at the database level. One-line registration, link tables generated for you. Tested on SQLite / SQL Server / PostgreSQL x EF Core 8, 9, 10.
To associate your repository with the polymorphic topic, visit your repo's landing page and select "manage topics."