1 write to EffectiveConverter
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.cs (1)
22EffectiveConverter = converter.CreateCastingConverter<T>();
13 references to EffectiveConverter
System.Text.Json (13)
System\Text\Json\Nodes\JsonValue.cs (3)
101if (value is JsonElement element && jsonTypeInfo.EffectiveConverter.IsInternalConverter) 170jsonTypeInfo is { EffectiveConverter.IsInternalConverter: true } && 175return new JsonValuePrimitive<T>(value, jsonTypeInfo.EffectiveConverter, options);
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (1)
52return ((JsonTypeInfo<TElement>)elementTypeInfo).EffectiveConverter;
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (1)
69return ((JsonTypeInfo<T>)typeInfo).EffectiveConverter;
System\Text\Json\Serialization\Converters\Collection\RootLevelListConverter.cs (1)
30JsonConverter<T> elementConverter = _elementTypeInfo.EffectiveConverter;
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (1)
894return ((JsonTypeInfo<TValue>)dictionaryValueInfo).EffectiveConverter;
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (1)
154?? ((JsonTypeInfo<T>)jsonTypeInfo).EffectiveConverter; // Fall back to the effective converter for the type.
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.ReadHelper.cs (2)
20bool success = EffectiveConverter.ReadCore(ref reader, out T? result, Options, ref state); 116bool success = EffectiveConverter.ReadCore(ref reader, out value, Options, ref readStack);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (3)
56bool success = EffectiveConverter.WriteCore(writer, rootValue, Options, ref state); 171isFinalBlock = EffectiveConverter.WriteCore(writer, rootValue, Options, ref state); 311isFinalBlock = EffectiveConverter.WriteCore(writer, rootValue, Options, ref state);