3 references to CurrentDepth
System.Text.Json (3)
System\Text\Json\Serialization\Converters\Union\JsonUnionConverter.cs (1)
161if (state.CurrentDepth >= options.EffectiveMaxDepth)
System\Text\Json\Serialization\JsonConverter.MetadataHandling.cs (1)
179state.Current.IsPushedReferenceForCycleDetection = state.CurrentDepth > 0;
System\Text\Json\Serialization\WriteStack.cs (1)
152Debug.Assert(CurrentDepth == 0);