6 references to CurrentContainsMetadata
System.Text.Json (6)
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)
59
!state.
CurrentContainsMetadata
) // Do not use the fast path if state needs to write metadata.
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (2)
333
if (state.
CurrentContainsMetadata
&& CanHaveMetadata)
376
if (state.
CurrentContainsMetadata
&& CanHaveMetadata)
System\Text\Json\Serialization\JsonSerializer.Write.HandleMetadata.cs (1)
24
Debug.Assert(state.
CurrentContainsMetadata
);