你的位置: 码友网首页 / 资讯源列表 / C# 9 records as strongly-typed ids - Part 3: JSON serialization

关于[C# 9 records as strongly-typed ids - Part 3: JSON serialization]的摘要:

In the previous post in this series, we noticed that the strongly-typed id was serialized to JSON in an unexpected way...When you think about it, it’s not really unexpected: the strongly-typed id is a “complex” object, not a primitive type, so it makes sense that it’s serialized as an object. But it’s clearly not what we want… Let’s see how to fix that.

原文地址: https://thomaslevesque.com/2020/12/07/csharp-9-records-as-strongly-typed-ids-part-3-json-serialization/

收录时间: 2020-12-08 浏览量: 1298 分类: C#开发

| 0 收藏 | 0