3 writes to CanBePolymorphic
System.Text.Json (3)
System\Text\Json\Serialization\Converters\CastingConverter.cs (1)
34
CanBePolymorphic
= sourceConverter.CanBePolymorphic;
System\Text\Json\Serialization\Converters\JsonMetadataServicesConverter.cs (1)
40
CanBePolymorphic
= converter.CanBePolymorphic;
System\Text\Json\Serialization\Converters\Object\ObjectConverter.cs (1)
17
CanBePolymorphic
= true;
10 references to CanBePolymorphic
System.Text.Json (10)
System\Text\Json\Serialization\Converters\CastingConverter.cs (1)
34
CanBePolymorphic = sourceConverter.
CanBePolymorphic
;
System\Text\Json\Serialization\Converters\JsonMetadataServicesConverter.cs (1)
40
CanBePolymorphic = converter.
CanBePolymorphic
;
System\Text\Json\Serialization\JsonConverter.MetadataHandling.cs (2)
73
Debug.Assert(
CanBePolymorphic
|| jsonTypeInfo.PolymorphicTypeResolver != null);
85
if (
CanBePolymorphic
&& runtimeType != Type)
System\Text\Json\Serialization\JsonConverterOfT.cs (3)
216
CanBePolymorphic
)
380
bool canBePolymorphic =
CanBePolymorphic
|| jsonTypeInfo.PolymorphicTypeResolver is not null;
546
if (!
CanBePolymorphic
&& !(HandleNullOnRead && tokenType == JsonTokenType.Null))
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (3)
43
Converter.
CanBePolymorphic
&&
138
Converter.
CanBePolymorphic
&&
285
Converter.
CanBePolymorphic
&&