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

◆ EnumerateArray()

ArrayEnumerator System.Text.Json.JsonElement.EnumerateArray ( )
inline

Definition at line 571 of file JsonElement.cs.

572 {
574 JsonTokenType tokenType = TokenType;
575 if (tokenType != JsonTokenType.StartArray)
576 {
577 throw ThrowHelper.GetJsonElementWrongTypeException(JsonTokenType.StartArray, tokenType);
578 }
579 return new ArrayEnumerator(this);
580 }

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

Referenced by System.Text.Json.Nodes.JsonArray.CreateNodes().