Пример #1
0
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            LocalTime ts = (LocalTime)value;

            writer.WriteValue(ts.ToString());
        }
Пример #2
0
 public static string ValueToString(LocalTime value) => JsonConvert.ToString(value.ToString());