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)
172EffectiveConverter.ConverterStrategy != ConverterStrategy.Value && 199if (EffectiveConverter.HandleNullOnWrite) 208EffectiveConverter.Write(writer, value, Options); 211ThrowHelper.ThrowJsonException_SerializationConverterWrite(EffectiveConverter); 229return EffectiveConverter.TryWrite(writer, value, Options, ref state); 251success = EffectiveConverter.TryWriteDataExtensionProperty(writer, value, Options, ref state); 263if (isNullToken && !EffectiveConverter.HandleNullOnRead && !state.IsContinuation) 270ThrowHelper.ThrowInvalidOperationException_DeserializeUnableToAssignNull(EffectiveConverter.Type); 273ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(EffectiveConverter.Type); 285else if (EffectiveConverter.CanUseDirectReadOrWrite && state.Current.NumberHandling == null) 294T? fastValue = EffectiveConverter.Read(ref reader, PropertyType, Options); 308success = EffectiveConverter.TryRead(ref reader, PropertyType, Options, ref state, out T? value, out bool populatedValue); 335if (isNullToken && !EffectiveConverter.HandleNullOnRead && !state.IsContinuation) 339ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(EffectiveConverter.Type); 348if (EffectiveConverter.CanUseDirectReadOrWrite && state.Current.NumberHandling == null) 353value = EffectiveConverter.Read(ref reader, PropertyType, Options); 358success = EffectiveConverter.TryRead(ref reader, PropertyType, Options, ref state, out T? typedValue, out _);