19 references to EffectiveConverter
System.Text.Json (19)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
240
customConverter: property.
EffectiveConverter
,
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (1)
58
return (JsonConverter<TElement>)state.Current.JsonPropertyInfo.
EffectiveConverter
;
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (2)
397
Debug.Assert(jsonPropertyInfo.
EffectiveConverter
.ConverterStrategy != ConverterStrategy.Value);
499
bool requiresReadAhead = jsonPropertyInfo.
EffectiveConverter
.RequiresReadAhead || state.Current.UseExtensionProperty;
System\Text\Json\Serialization\Metadata\JsonParameterInfo.cs (1)
117
internal JsonConverter EffectiveConverter => MatchingProperty.
EffectiveConverter
;
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (13)
528
Debug.Assert(
EffectiveConverter
!= null, "Must have calculated the effective converter.");
542
if ((
EffectiveConverter
.ConverterStrategy & (ConverterStrategy.Enumerable | ConverterStrategy.Dictionary)) != 0)
570
if (declaringTypeNumberHandling != null && declaringTypeNumberHandling != JsonNumberHandling.Strict && !
EffectiveConverter
.IsInternalConverter)
620
Debug.Assert(
EffectiveConverter
!= null, "Must have calculated the effective converter.");
637
EffectiveConverter
.CanPopulate &&
647
if (!
EffectiveConverter
.CanPopulate)
696
if (
EffectiveConverter
.IsInternalConverterForNumberType)
702
if (!
EffectiveConverter
.IsInternalConverter ||
703
((ConverterStrategy.Enumerable | ConverterStrategy.Dictionary) &
EffectiveConverter
.ConverterStrategy) == 0)
709
Debug.Assert(
EffectiveConverter
.ElementType != null);
710
potentialNumberType =
EffectiveConverter
.ElementType;
879
EffectiveConverter
.ReadElementAndSetProperty(propValue, state.Current.JsonPropertyNameAsString!, ref reader, Options, ref state);
947
Debug.Assert(
EffectiveConverter
.CanPopulate, "Property is marked with Populate but converter cannot populate. This should have been validated in Configure");
System\Text\Json\Serialization\WriteStack.cs (1)
446
private string DebuggerDisplay => $"Path = {PropertyPath()} Current = ConverterStrategy.{Current.JsonPropertyInfo?.
EffectiveConverter
.ConverterStrategy}, {Current.JsonTypeInfo?.Type.Name}";