40 references to PolymorphicSerializationState
System.Text.Json (40)
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (1)
163state.Current.PolymorphicSerializationState != PolymorphicSerializationState.PolymorphicReEntryStarted &&
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (1)
185state.Current.PolymorphicSerializationState != PolymorphicSerializationState.PolymorphicReEntryStarted &&
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (1)
88state.Current.PolymorphicSerializationState != PolymorphicSerializationState.PolymorphicReEntryStarted &&
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (1)
151state.Current.PolymorphicSerializationState != PolymorphicSerializationState.PolymorphicReEntryStarted &&
System\Text\Json\Serialization\JsonConverter.MetadataHandling.cs (9)
19Debug.Assert(state.Current.PolymorphicSerializationState != PolymorphicSerializationState.PolymorphicReEntryStarted); 26case PolymorphicSerializationState.None: 43state.Current.PolymorphicSerializationState = PolymorphicSerializationState.PolymorphicReEntryNotFound; 49case PolymorphicSerializationState.PolymorphicReEntrySuspended: 54case PolymorphicSerializationState.PolymorphicReEntryNotFound: 80case PolymorphicSerializationState.None: 115state.Current.PolymorphicSerializationState = PolymorphicSerializationState.PolymorphicReEntryNotFound; 120case PolymorphicSerializationState.PolymorphicReEntrySuspended: 126case PolymorphicSerializationState.PolymorphicReEntryNotFound:
System\Text\Json\Serialization\JsonConverterOfT.cs (1)
375state.Current.PolymorphicSerializationState != PolymorphicSerializationState.PolymorphicReEntryStarted)
System\Text\Json\Serialization\ReadStack.cs (7)
214Debug.Assert(Current.PolymorphicSerializationState == PolymorphicSerializationState.None); 220Current.PolymorphicSerializationState = PolymorphicSerializationState.PolymorphicReEntryStarted; 233Debug.Assert(Current.PolymorphicSerializationState == PolymorphicSerializationState.PolymorphicReEntrySuspended); 237Current.PolymorphicSerializationState = PolymorphicSerializationState.PolymorphicReEntryStarted; 247Debug.Assert(Current.PolymorphicSerializationState == PolymorphicSerializationState.PolymorphicReEntryStarted); 251Current.PolymorphicSerializationState = success ? PolymorphicSerializationState.None : PolymorphicSerializationState.PolymorphicReEntrySuspended;
System\Text\Json\Serialization\ReadStackFrame.cs (2)
55public PolymorphicSerializationState PolymorphicSerializationState; 62=> PolymorphicSerializationState == PolymorphicSerializationState.PolymorphicReEntryStarted
System\Text\Json\Serialization\WriteStack.cs (3)
180Debug.Assert(Current.PolymorphicSerializationState != PolymorphicSerializationState.PolymorphicReEntryStarted); 188Debug.Assert(Current.PolymorphicSerializationState != PolymorphicSerializationState.PolymorphicReEntrySuspended); 190if (_count == 0 && Current.PolymorphicSerializationState == PolymorphicSerializationState.None)
System\Text\Json\Serialization\WriteStackFrame.cs (14)
77public PolymorphicSerializationState PolymorphicSerializationState; 88PolymorphicSerializationState = PolymorphicSerializationState.None; 94PolymorphicSerializationState = PolymorphicSerializationState.None; 102PolymorphicSerializationState = PolymorphicSerializationState.None; 110return PolymorphicSerializationState is PolymorphicSerializationState.PolymorphicReEntryStarted 120Debug.Assert(PolymorphicSerializationState == PolymorphicSerializationState.None); 133PolymorphicSerializationState = PolymorphicSerializationState.PolymorphicReEntryStarted; 142Debug.Assert(PolymorphicSerializationState is PolymorphicSerializationState.None or PolymorphicSerializationState.PolymorphicReEntryStarted); 145PolymorphicSerializationState = PolymorphicSerializationState.PolymorphicReEntryStarted; 154Debug.Assert(PolymorphicSerializationState == PolymorphicSerializationState.PolymorphicReEntrySuspended); 156PolymorphicSerializationState = PolymorphicSerializationState.PolymorphicReEntryStarted; 165PolymorphicSerializationState = success ? PolymorphicSerializationState.None : PolymorphicSerializationState.PolymorphicReEntrySuspended;