dotnet / dotnet/dotnet-api-docs
Utf8JsonReader.TryGetDouble - Example data where it returns false
Open
area-System.Text.Json
Pri3
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
Hi,
Trying to learn and understand System.Text.Json Utf8JsonReader [TryGetDouble](https://docs.microsoft.com/en-us/dotnet/api/system.text.json.utf8jsonreader.trygetdouble?view=netcore-3.1) method. In particular how to get it to return false for unit testing.
Are there any example values where this method returns false?
If I use the json string value below containing a value above ```Double.MaxValue```, ```TryGetDouble``` still returns true.
``` C#
const string json = "{\"property\": 1.79769313486232E+309}";
```
Contributor guide
Assessment
This issue has not been assessed yet.