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

◆ GetBoolean()

bool System.Text.Json.JsonElement.GetBoolean ( )
inline

Definition at line 248 of file JsonElement.cs.

249 {
250 JsonTokenType tokenType = TokenType;
251 return tokenType switch
252 {
253 JsonTokenType.False => false,
254 JsonTokenType.True => true,
255 _ => throw ThrowHelper.GetJsonElementWrongTypeException("Boolean", tokenType),
256 };
257 }

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