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

◆ ThrowInvalidLiteral()

void System.Text.Json.Utf8JsonReader.ThrowInvalidLiteral ( ReadOnlySpan< byte > span)
inlineprivate

Definition at line 847 of file Utf8JsonReader.cs.

848 {
849 ThrowHelper.ThrowJsonReaderException(ref this, span[0] switch
850 {
851 116 => ExceptionResource.ExpectedTrue,
852 102 => ExceptionResource.ExpectedFalse,
853 _ => ExceptionResource.ExpectedNull,
854 }, 0, span);
855 }

References System.Text.Json.Dictionary, and System.Text.Json.ThrowHelper.ThrowJsonReaderException().

Referenced by System.Text.Json.Utf8JsonReader.CheckLiteral().