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