Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TryGetNamedPropertyValue() [1/3]

bool System.Text.Json.JsonDocument.TryGetNamedPropertyValue ( int index,
ReadOnlySpan< byte > propertyName,
out JsonElement value )
inlinepackage

Definition at line 1620 of file JsonDocument.cs.

1621 {
1623 DbRow dbRow = _parsedData.Get(index);
1624 CheckExpectedType(JsonTokenType.StartObject, dbRow.TokenType);
1625 if (dbRow.NumberOfRows == 1)
1626 {
1627 value = default(JsonElement);
1628 return false;
1629 }
1630 int endIndex = checked(dbRow.NumberOfRows * 12 + index);
1632 }
bool TryGetNamedPropertyValue(int index, ReadOnlySpan< char > propertyName, out JsonElement value)
void CheckExpectedType(JsonTokenType expected, JsonTokenType actual)

References System.Text.Json.JsonDocument._parsedData, System.Text.Json.JsonDocument.CheckExpectedType(), System.Text.Json.JsonDocument.CheckNotDisposed(), System.Text.Json.Dictionary, System.endIndex, System.Text.Json.JsonDocument.MetadataDb.Get(), System.index, System.Text.Json.JsonDocument.TryGetNamedPropertyValue(), and System.value.