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