2 writes to EffectiveMaxDepth
System.Text.Json (2)
System\Text\Json\Serialization\JsonSerializerOptions.cs (2)
164
EffectiveMaxDepth
= options.EffectiveMaxDepth;
593
EffectiveMaxDepth
= (value == 0 ? DefaultMaxDepth : value);
11 references to EffectiveMaxDepth
System.Text.Json (11)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
530
if (CurrentDepth == Options.
EffectiveMaxDepth
)
System\Text\Json\Serialization\Converters\Union\JsonUnionConverter.cs (2)
167
if (state.CurrentDepth >= options.
EffectiveMaxDepth
)
169
ThrowHelper.ThrowJsonException_SerializerCycleDetected(options.
EffectiveMaxDepth
);
System\Text\Json\Serialization\JsonConverterOfT.cs (4)
329
if (writer.CurrentDepth >= options.
EffectiveMaxDepth
)
331
ThrowHelper.ThrowJsonException_SerializerCycleDetected(options.
EffectiveMaxDepth
);
468
if (writer.CurrentDepth >= options.
EffectiveMaxDepth
)
470
ThrowHelper.ThrowJsonException_SerializerCycleDetected(options.
EffectiveMaxDepth
);
System\Text\Json\Serialization\JsonSerializerOptions.cs (4)
164
EffectiveMaxDepth = options.
EffectiveMaxDepth
;
1111
MaxDepth =
EffectiveMaxDepth
1123
MaxDepth =
EffectiveMaxDepth
,
1139
MaxDepth =
EffectiveMaxDepth
,