internal static void RegisterSerializers <T>() { Register <T, Text.Json.JsonTypeSerializer>(); jsonSerializer.GetParseFn <T>(); jsonSerializer.GetWriteFn <T>(); jsonReader.GetParseFn <T>(); jsonWriter.GetWriteFn <T>(); Register <T, Text.Jsv.JsvTypeSerializer>(); jsvSerializer.GetParseFn <T>(); jsvSerializer.GetWriteFn <T>(); jsvReader.GetParseFn <T>(); jsvWriter.GetWriteFn <T>(); CsvSerializer.InitAot <T>(); QueryStringWriter <T> .WriteFn(); }
internal static int RegisterSerializers <T>() { var i = 0; i += Register <T, JsonTypeSerializer>(); if (jsonSerializer.GetParseFn <T>() != null) { i++; } if (jsonSerializer.GetWriteFn <T>() != null) { i++; } if (jsonReader.GetParseFn <T>() != null) { i++; } if (jsonWriter.GetWriteFn <T>() != null) { i++; } i += Register <T, Text.Jsv.JsvTypeSerializer>(); if (jsvSerializer.GetParseFn <T>() != null) { i++; } if (jsvSerializer.GetWriteFn <T>() != null) { i++; } if (jsvReader.GetParseFn <T>() != null) { i++; } if (jsvWriter.GetWriteFn <T>() != null) { i++; } //RegisterCsvSerializer<T>(); RegisterQueryStringWriter(); return(i); }