16 writes to ObjectState
System.Text.Json (16)
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (6)
127state.Current.ObjectState = StackFrameObjectState.ReadMetadata; 136state.Current.ObjectState = StackFrameObjectState.StartToken; 159state.Current.ObjectState = StackFrameObjectState.ReadMetadata; 194state.Current.ObjectState = StackFrameObjectState.CreatedObject; 242state.Current.ObjectState = StackFrameObjectState.ReadElements; 257state.Current.ObjectState = StackFrameObjectState.EndToken;
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (3)
163state.Current.ObjectState = StackFrameObjectState.StartToken; 181state.Current.ObjectState = StackFrameObjectState.ReadMetadata; 217state.Current.ObjectState = StackFrameObjectState.CreatedObject;
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (3)
71state.Current.ObjectState = StackFrameObjectState.StartToken; 89state.Current.ObjectState = StackFrameObjectState.ReadMetadata; 142state.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)
123if (state.Current.ObjectState == StackFrameObjectState.None) 145if (state.Current.CanContainMetadata && state.Current.ObjectState < StackFrameObjectState.ReadMetadata) 174if (state.Current.ObjectState < StackFrameObjectState.CreatedObject) 197if (state.Current.ObjectState < StackFrameObjectState.ReadElements) 245if (state.Current.ObjectState < StackFrameObjectState.EndToken) 260if (state.Current.ObjectState < StackFrameObjectState.EndTokenValidation)
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (3)
156if (state.Current.ObjectState == StackFrameObjectState.None) 167if (state.Current.CanContainMetadata && state.Current.ObjectState < StackFrameObjectState.ReadMetadata) 197if (state.Current.ObjectState < StackFrameObjectState.CreatedObject)
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (3)
64if (state.Current.ObjectState == StackFrameObjectState.None) 75if (state.Current.CanContainMetadata && state.Current.ObjectState < StackFrameObjectState.ReadMetadata) 104if (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)
302if (frame.ObjectState == StackFrameObjectState.None || 303frame.ObjectState == StackFrameObjectState.CreatedObject || 304frame.ObjectState == StackFrameObjectState.ReadElements)