2 writes to EffectiveMaxDepth
System.Text.Json (2)
System\Text\Json\Serialization\JsonSerializerOptions.cs (2)
162
EffectiveMaxDepth
= options.EffectiveMaxDepth;
591
EffectiveMaxDepth
= (value == 0 ? DefaultMaxDepth : value);
11 references to EffectiveMaxDepth
System.Text.Json (11)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
480
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)
162
EffectiveMaxDepth = options.
EffectiveMaxDepth
;
1085
MaxDepth =
EffectiveMaxDepth
1097
MaxDepth =
EffectiveMaxDepth
,
1113
MaxDepth =
EffectiveMaxDepth
,