20 references to CurrentDepth
Microsoft.AspNetCore.SignalR.Protocols.Json (5)
Protocol\JsonHubProtocol.cs (5)
290int initialDepth = reader.CurrentDepth; 318while (reader.CurrentDepth == initialDepth && reader.TokenType == JsonTokenType.StartArray || 319reader.CurrentDepth > initialDepth) 838var depth = reader.CurrentDepth; 841while (reader.TokenType != JsonTokenType.EndArray && reader.CurrentDepth > depth)
System.Text.Json (15)
System\Text\Json\JsonHelpers.cs (3)
50Debug.Assert(reader.CurrentDepth == 0, "should only invoked for top-level values."); 182bool success = reader.TrySkipPartial(reader.CurrentDepth); 189return reader.TrySkipPartial(reader.CurrentDepth);
System\Text\Json\Reader\Utf8JsonReader.cs (7)
336int depth = CurrentDepth; 344while (depth < CurrentDepth); 380bool success = TrySkipPartial(targetDepth: CurrentDepth); 398Debug.Assert(0 <= targetDepth && targetDepth <= CurrentDepth); 400if (targetDepth == CurrentDepth) 427while (targetDepth < CurrentDepth); 429Debug.Assert(targetDepth == CurrentDepth);
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (1)
270bool result = reader.TrySkipPartial(reader.CurrentDepth - 1); // skip to the end of the object
System\Text\Json\Serialization\JsonConverterOfT.cs (4)
184int originalPropertyDepth = reader.CurrentDepth; 245state.Current.OriginalDepth = reader.CurrentDepth; 510else if (depth != reader.CurrentDepth) 522else if (depth != reader.CurrentDepth)