2 writes to CanContainMetadata
System.Text.Json (2)
System\Text\Json\Serialization\ReadStack.cs (2)
108Current.CanContainMetadata = PreserveReferences || jsonTypeInfo.PolymorphicTypeResolver?.UsesTypeDiscriminators == true; 137Current.CanContainMetadata = PreserveReferences || jsonTypeInfo.PolymorphicTypeResolver?.UsesTypeDiscriminators == true;
16 references to CanContainMetadata
System.Text.Json (16)
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (4)
71if (!state.SupportContinuation && !state.Current.CanContainMetadata) 128else if (state.Current.CanContainMetadata) 144if (state.Current.CanContainMetadata && state.Current.ObjectState < StackFrameObjectState.ReadMetadata) 175if (state.Current.CanContainMetadata)
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (4)
83if (!state.SupportContinuation && !state.Current.CanContainMetadata) 166if (state.Current.CanContainMetadata && state.Current.ObjectState < StackFrameObjectState.ReadMetadata) 198if (state.Current.CanContainMetadata) 250if (state.Current.CanContainMetadata)
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (3)
26if (!state.SupportContinuation && !state.Current.CanContainMetadata) 69if (state.Current.CanContainMetadata && state.Current.ObjectState < StackFrameObjectState.ReadMetadata) 100if (state.Current.CanContainMetadata)
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (3)
39if (!state.SupportContinuation && !state.Current.CanContainMetadata) 132if (state.Current.CanContainMetadata && state.Current.ObjectState < StackFrameObjectState.ReadMetadata) 178if (state.Current.CanContainMetadata)
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (1)
28Debug.Assert(state.Current.CanContainMetadata);
System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs (1)
87if (state.Current.CanContainMetadata)