7 references to _typeToDiscriminatorId
System.Text.Json (7)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (7)
48if (!_typeToDiscriminatorId.TryAdd(derivedType, derivedTypeInfoHolder)) 123if (!_typeToDiscriminatorId.TryGetValue(runtimeType, out DerivedJsonTypeInfo? result)) 131_typeToDiscriminatorId[runtimeType] = result; 135_typeToDiscriminatorId.TryGetValue(BaseType, out result); 136_typeToDiscriminatorId[runtimeType] = result; 217if (_typeToDiscriminatorId.TryGetValue(candidate, out result)) 230_typeToDiscriminatorId.TryGetValue(interfaceTy, out DerivedJsonTypeInfo? interfaceResult) &&