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

◆ EnumerateObject()

ObjectEnumerator System.Text.Json.JsonElement.EnumerateObject ( )
inline

Definition at line 582 of file JsonElement.cs.

583 {
585 JsonTokenType tokenType = TokenType;
586 if (tokenType != JsonTokenType.StartObject)
587 {
588 throw ThrowHelper.GetJsonElementWrongTypeException(JsonTokenType.StartObject, tokenType);
589 }
590 return new ObjectEnumerator(this);
591 }

References System.Text.Json.JsonElement.CheckValidInstance(), System.Text.Json.ThrowHelper.GetJsonElementWrongTypeException(), and System.Text.Json.JsonElement.TokenType.

Referenced by System.Text.Json.Nodes.JsonObject.InitializeIfRequired(), and System.Text.Json.JsonSerializer.TryGetReferenceFromJsonElement().