public static void Write(Utf8JsonWriter writer,
                                 object?value,
                                 JsonSerializerOptions nestedOptions,
                                 Type?nestedInputType = null)
        {
            JsonConverter <object?> converter = new DefaultObjectJsonConverter(nestedOptions, nestedInputType);

            converter.Write(writer, value, nestedOptions);
        }
Ejemplo n.º 2
0
 public override void Write(Utf8JsonWriter writer, T value, JsonSerializerOptions options)
 {
     DefaultObjectJsonConverter.Write(writer, value, options);
 }
 private static T defaultReader(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
 {
     return((T)DefaultObjectJsonConverter.Read(ref reader, typeToConvert, options) !);
 }
Ejemplo n.º 4
0
        public override T Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
        {
            var type = this.GetType(typeToConvert, options);

            return((T)DefaultObjectJsonConverter.Read(ref reader, type, options));
        }
 private static void defaultWriter(Utf8JsonWriter writer, T value, JsonSerializerOptions options)
 {
     DefaultObjectJsonConverter.Write(writer, value, options);              // not sure about the last argument
 }