1 instantiation of DerivedJsonTypeInfo
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
46
DerivedJsonTypeInfo derivedTypeInfoHolder =
new
(typeDiscriminator, derivedTypeInfo);
9 references to DerivedJsonTypeInfo
System.Text.Json (9)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (9)
18
private readonly ConcurrentDictionary<Type,
DerivedJsonTypeInfo
?> _typeToDiscriminatorId = new();
19
private readonly Dictionary<object,
DerivedJsonTypeInfo
>? _discriminatorIdtoType;
46
DerivedJsonTypeInfo
derivedTypeInfoHolder = new(typeDiscriminator, derivedTypeInfo);
96
foreach (
DerivedJsonTypeInfo
derivedTypeInfo in _discriminatorIdtoType.Values)
123
if (!_typeToDiscriminatorId.TryGetValue(runtimeType, out
DerivedJsonTypeInfo
? result))
169
if (_discriminatorIdtoType.TryGetValue(typeDiscriminator, out
DerivedJsonTypeInfo
? result))
199
private
DerivedJsonTypeInfo
? CalculateNearestAncestor(Type type)
210
DerivedJsonTypeInfo
? result = null;
230
_typeToDiscriminatorId.TryGetValue(interfaceTy, out
DerivedJsonTypeInfo
? interfaceResult) &&