18 references to EffectiveConverter
System.Text.Json (18)
System\Text\Json\Serialization\Metadata\JsonParameterInfoOfT.cs (1)
14public new JsonConverter<T> EffectiveConverter => MatchingProperty.EffectiveConverter;
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (17)
185EffectiveConverter.ConverterStrategy != ConverterStrategy.Value && 217if (EffectiveConverter.HandleNullOnWrite) 226EffectiveConverter.Write(writer, value, Options); 229ThrowHelper.ThrowJsonException_SerializationConverterWrite(EffectiveConverter); 247return EffectiveConverter.TryWrite(writer, value, Options, ref state); 269success = EffectiveConverter.TryWriteDataExtensionProperty(writer, value, Options, ref state); 281if (isNullToken && !EffectiveConverter.HandleNullOnRead && !state.IsContinuation) 288ThrowHelper.ThrowInvalidOperationException_DeserializeUnableToAssignNull(EffectiveConverter.Type); 291ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(EffectiveConverter.Type); 308else if (EffectiveConverter.CanUseDirectReadOrWrite && state.Current.NumberHandling == null) 317T? fastValue = EffectiveConverter.Read(ref reader, PropertyType, Options); 337success = EffectiveConverter.TryRead(ref reader, PropertyType, Options, ref state, out T? value, out bool populatedValue); 369if (isNullToken && !EffectiveConverter.HandleNullOnRead && !state.IsContinuation) 373ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(EffectiveConverter.Type); 382if (EffectiveConverter.CanUseDirectReadOrWrite && state.Current.NumberHandling == null) 387value = EffectiveConverter.Read(ref reader, PropertyType, Options); 392success = EffectiveConverter.TryRead(ref reader, PropertyType, Options, ref state, out T? typedValue, out _);