36 references to StackFrameObjectState
System.Text.Json (36)
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (12)
122
if (state.Current.ObjectState ==
StackFrameObjectState
.None)
126
state.Current.ObjectState =
StackFrameObjectState
.ReadMetadata;
135
state.Current.ObjectState =
StackFrameObjectState
.StartToken;
144
if (state.Current.CanContainMetadata && state.Current.ObjectState <
StackFrameObjectState
.ReadMetadata)
158
state.Current.ObjectState =
StackFrameObjectState
.ReadMetadata;
173
if (state.Current.ObjectState <
StackFrameObjectState
.CreatedObject)
193
state.Current.ObjectState =
StackFrameObjectState
.CreatedObject;
196
if (state.Current.ObjectState <
StackFrameObjectState
.ReadElements)
241
state.Current.ObjectState =
StackFrameObjectState
.ReadElements;
244
if (state.Current.ObjectState <
StackFrameObjectState
.EndToken)
256
state.Current.ObjectState =
StackFrameObjectState
.EndToken;
259
if (state.Current.ObjectState <
StackFrameObjectState
.EndTokenValidation)
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (6)
155
if (state.Current.ObjectState ==
StackFrameObjectState
.None)
162
state.Current.ObjectState =
StackFrameObjectState
.StartToken;
166
if (state.Current.CanContainMetadata && state.Current.ObjectState <
StackFrameObjectState
.ReadMetadata)
180
state.Current.ObjectState =
StackFrameObjectState
.ReadMetadata;
196
if (state.Current.ObjectState <
StackFrameObjectState
.CreatedObject)
216
state.Current.ObjectState =
StackFrameObjectState
.CreatedObject;
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (6)
58
if (state.Current.ObjectState ==
StackFrameObjectState
.None)
65
state.Current.ObjectState =
StackFrameObjectState
.StartToken;
69
if (state.Current.CanContainMetadata && state.Current.ObjectState <
StackFrameObjectState
.ReadMetadata)
83
state.Current.ObjectState =
StackFrameObjectState
.ReadMetadata;
98
if (state.Current.ObjectState <
StackFrameObjectState
.CreatedObject)
136
state.Current.ObjectState =
StackFrameObjectState
.CreatedObject;
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (7)
121
if (state.Current.ObjectState ==
StackFrameObjectState
.None)
128
state.Current.ObjectState =
StackFrameObjectState
.StartToken;
132
if (state.Current.CanContainMetadata && state.Current.ObjectState <
StackFrameObjectState
.ReadMetadata)
146
state.Current.ObjectState =
StackFrameObjectState
.ReadMetadata;
170
state.Current.ObjectState =
StackFrameObjectState
.CreatedObject;
176
if (state.Current.ObjectState <
StackFrameObjectState
.ConstructorArguments)
191
state.Current.ObjectState =
StackFrameObjectState
.ConstructorArguments;
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (1)
27
Debug.Assert(state.Current.ObjectState ==
StackFrameObjectState
.StartToken);
System\Text\Json\Serialization\ReadStack.cs (3)
294
if (frame.ObjectState ==
StackFrameObjectState
.None ||
295
frame.ObjectState ==
StackFrameObjectState
.CreatedObject ||
296
frame.ObjectState ==
StackFrameObjectState
.ReadElements)
System\Text\Json\Serialization\ReadStackFrame.cs (1)
47
public
StackFrameObjectState
ObjectState; // State tracking the current object.