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