标签: c# serialization yaml yamldotnet
如果我添加EnsureRoundtrip(),如下,我的序列化失败,因为我有类型,而缺省构造(我经由定制desrializers打算解析):
EnsureRoundtrip()
var yaml = new SerializerBuilder() .EnsureRoundtrip() .Build() .Serialize(model);
那我该如何发出类型标签并成功进行序列化呢?