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

◆ TryGetDecimal()

bool System.Text.Json.Utf8JsonReader.TryGetDecimal ( out decimal value)
inline

Definition at line 4736 of file Utf8JsonReader.cs.

4737 {
4738 if (TokenType != JsonTokenType.Number)
4739 {
4740 throw ThrowHelper.GetInvalidOperationException_ExpectedNumber(TokenType);
4741 }
4742 ReadOnlySpan<byte> readOnlySpan;
4743 if (!HasValueSequence)
4744 {
4746 }
4747 else
4748 {
4751 }
4752 ReadOnlySpan<byte> span = readOnlySpan;
4754 }
bool TryGetDecimalCore(out decimal value, ReadOnlySpan< byte > span)
ReadOnlySequence< byte > ValueSequence

References System.Text.Json.Dictionary, System.Text.Json.ThrowHelper.GetInvalidOperationException_ExpectedNumber(), System.Text.Json.Utf8JsonReader.HasValueSequence, System.Text.Json.Utf8JsonReader.TryGetDecimalCore(), System.value, System.Text.Json.Utf8JsonReader.ValueSequence, and System.Text.Json.Utf8JsonReader.ValueSpan.

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