Tomohisa Takaokatomohisa.hashnode.dev·Aug 6, 2024Serializing and deserializing interface properties in C# to JSON using JsonDerivedTypeTL;DR When serializing/deserializing a class with an interface property like public record User(string Name, IUserEmail Email); in C#, you can achieve this using the JsonDerivedType attribute. (.NET 7 and above) Background: Wanting to Program with Ty...1 like·126 readsC#Add a thoughtful commentNo comments yetBe the first to start the conversation.