17 using System.Globalization;
18 using Newtonsoft.Json;
46 return objectType == typeof(decimal)
47 || objectType == typeof(
double);
57 public override object ReadJson(JsonReader reader, Type objectType,
object existingValue, JsonSerializer serializer)
59 throw new NotImplementedException();
68 public override void WriteJson(JsonWriter writer,
object value, JsonSerializer serializer)
73 writer.WriteValue(rounded.ToString(CultureInfo.InvariantCulture));
79 writer.WriteValue(rounded.ToString(CultureInfo.InvariantCulture));