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