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