Sha256: 240a4c0af08e62e480558a28fc755a312f7db214910a17ceeb0fb77e65ef1b7c
Contents?: true
Size: 672 Bytes
Versions: 123
Compression:
Stored size: 672 Bytes
Contents
using System; using System.Reflection; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace Generators.Input { public class CanonicalDataCasesJsonConverter : JsonConverter { public override bool CanConvert(Type objectType) => typeof(CanonicalDataCase[]).GetTypeInfo().IsAssignableFrom(objectType); public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) => CanonicalDataCasesJson.ToArray(JToken.ReadFrom(reader)); public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) => throw new NotImplementedException(); } }
Version data entries
123 entries across 123 versions & 1 rubygems