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