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