Can I make Json.net deserialize a C# 9 record type with the “primary” constructor, as if it had [JsonConstructor]?

后端 未结 0 516
走了就别回头了
走了就别回头了 2020-12-19 08:38

Using C# 9 on .NET 5.0, I have a bunch of record types, like this:

public record SomethingHappenedEvent(Guid Id, object TheThing, string WhatHappened)
{
    p         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题