6 overrides of CanHaveMetadata
System.Text.Json (6)
System\Text\Json\Serialization\Converters\Collection\DictionaryDefaultConverter.cs (1)
19internal override bool CanHaveMetadata => true;
System\Text\Json\Serialization\Converters\Collection\IEnumerableDefaultConverter.cs (1)
15internal override bool CanHaveMetadata => true;
System\Text\Json\Serialization\Converters\Collection\MemoryConverter.cs (1)
11internal override bool CanHaveMetadata => false;
System\Text\Json\Serialization\Converters\Collection\ReadOnlyMemoryConverter.cs (1)
11internal override bool CanHaveMetadata => false;
System\Text\Json\Serialization\Converters\JsonMetadataServicesConverter.cs (1)
30internal override bool CanHaveMetadata => Converter.CanHaveMetadata;
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (1)
17internal override bool CanHaveMetadata => true;
12 references to CanHaveMetadata
System.Text.Json (12)
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (1)
314if (state.CurrentContainsMetadata && CanHaveMetadata)
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (1)
356if (state.CurrentContainsMetadata && CanHaveMetadata)
System\Text\Json\Serialization\Converters\JsonMetadataServicesConverter.cs (1)
30internal override bool CanHaveMetadata => Converter.CanHaveMetadata;
System\Text\Json\Serialization\JsonConverter.MetadataHandling.cs (6)
17Debug.Assert(CanHaveMetadata); 36if (!polymorphicConverter.CanHaveMetadata) 94Debug.Assert(jsonTypeInfo.Converter.CanHaveMetadata); 102if (!polymorphicConverter.CanHaveMetadata) 162bool canHaveIdMetadata = polymorphicConverter?.CanHaveMetadata ?? CanHaveMetadata;
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (1)
98if (!converter.CanHaveMetadata)
System\Text\Json\Serialization\JsonSerializer.Write.HandleMetadata.cs (1)
22Debug.Assert(jsonConverter.CanHaveMetadata);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
751PolymorphicTypeResolver = new PolymorphicTypeResolver(Options, PolymorphismOptions, Type, Converter.CanHaveMetadata);