Why serializing Version with JsonPropertyAttribute doesn't work?
问题 I am trying to serialize an object with a static System.Version field: [JsonObject(MemberSerialization.OptIn)] public class MyObj { [JsonProperty] private static string testStr; [JsonProperty(ItemConverterType = typeof(VersionConverter))] private static Version ver = System.Reflection.Assembly...Version; // some other non-serialized fields // ... } I have learnt from this question that Version needs a custom converter, which I added as ItemConverterType . However, when I try to serialize it