0
如何在JsonConverter
類調試期間在JsonWriter
中累積文本?如何在JsonConverter類調試期間看到JsonWriter中積累的所有文本?
class LookupConverter : JsonConverter
{
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
var lu = value as Lookup<string, MyClass>;
foreach (var i in lu.SelectMany(nodes => nodes))
{
// I want to setup a breakpoint here and examine the
// "text" accumulated in `writer`...
}
}
/*
...
*/
}