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