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