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

◆ GetPrintableString()

static string System.Text.Json.ThrowHelper.GetPrintableString ( byte value)
inlinestaticpackage

Definition at line 275 of file ThrowHelper.cs.

276 {
277 if (!IsPrintable(value))
278 {
279 return $"0x{value:X2}";
280 }
281 char c = (char)value;
282 return c.ToString();
283 }
static bool IsPrintable(byte value)

References System.Text.Json.Dictionary, System.Text.Json.ThrowHelper.IsPrintable(), and System.value.

Referenced by System.Text.Json.ThrowHelper.GetResourceString(), and System.Text.Json.JsonWriterHelper.ValidateNumber().