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