1 write to _sourceConverter
System.Text.Json (1)
System\Text\Json\Serialization\Converters\CastingConverter.cs (1)
30_sourceConverter = sourceConverter;
16 references to _sourceConverter
System.Text.Json (16)
System\Text\Json\Serialization\Converters\CastingConverter.cs (16)
18internal override Type? KeyType => _sourceConverter.KeyType; 19internal override Type? ElementType => _sourceConverter.ElementType; 20internal override JsonConverter? NullableElementConverter => _sourceConverter.NullableElementConverter; 23internal override bool SupportsCreateObjectDelegate => _sourceConverter.SupportsCreateObjectDelegate; 42internal override JsonConverter? SourceConverterForCastingConverter => _sourceConverter; 45=> JsonSerializer.UnboxOnRead<T>(_sourceConverter.ReadAsObject(ref reader, typeToConvert, options)); 48=> _sourceConverter.WriteAsObject(writer, value, options); 52bool result = _sourceConverter.OnTryReadAsObject(ref reader, typeToConvert, options, ref state, out object? sourceValue); 58=> _sourceConverter.OnTryWriteAsObject(writer, value, options, ref state); 61=> JsonSerializer.UnboxOnRead<T>(_sourceConverter.ReadAsPropertyNameAsObject(ref reader, typeToConvert, options))!; 64=> JsonSerializer.UnboxOnRead<T>(_sourceConverter.ReadAsPropertyNameCoreAsObject(ref reader, typeToConvert, options))!; 67=> _sourceConverter.WriteAsPropertyNameAsObject(writer, value, options); 70=> _sourceConverter.WriteAsPropertyNameCoreAsObject(writer, value, options, isWritingExtensionDataProperty); 73=> JsonSerializer.UnboxOnRead<T>(_sourceConverter.ReadNumberWithCustomHandlingAsObject(ref reader, handling, options))!; 76=> _sourceConverter.WriteNumberWithCustomHandlingAsObject(writer, value, handling); 79=> _sourceConverter.GetSchema(numberHandling);