dotnet / dotnet/dotnet-api-docs
Utf8JsonReader.TryGetDouble - Example data where it returns false
- Lingua principale
- C#
- Stelle
- 950
- Fork
- 1.7k
- Merge medio
- 2g 19h
- PR unite (30g)
- 52
Descrizione
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}";
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dalla documentazione dell'API Utf8JsonReader.TryGetDouble collegata e verifica il comportamento dell'esempio C# fornito. Aggiungi un esempio chiaro o una spiegazione che mostri quando TryGetDouble restituisce false, in modo che la documentazione risponda alla domanda sugli unit test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100