17 using Newtonsoft.Json;
35 public override void WriteJson(JsonWriter writer,
object value, JsonSerializer serializer)
37 throw new NotImplementedException();
50 public override object ReadJson(JsonReader reader, Type objectType,
object existingValue, JsonSerializer serializer)
52 if (reader.TokenType == JsonToken.Null || (reader.TokenType == JsonToken.String && (
string)reader.Value ==
"null"))
56 return serializer.Deserialize<T>(reader);
68 throw new NotImplementedException();