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