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