Class StringValueToDoubleJsonConverter
Ensures that any broken double values that can be strings are actually passed as doubles.
Inheritance
System.Text.Json.Serialization.JsonConverter
StringValueToDoubleJsonConverter
Namespace: Den.Dev.Grunt.Converters
Assembly: Den.Dev.Grunt.dll
Syntax
[[System.Runtime.CompilerServices.Nullable(0)]]
[[System.Runtime.CompilerServices.NullableContext(1)]]
public class StringValueToDoubleJsonConverter : System.Text.Json.Serialization.JsonConverter<double?>
Remarks
This originates from the call to /hi/matches/MATCH_ID/skill where there's a chance that the expected number or the standard deviation can be "NaN".
Constructors
Name | Description |
---|---|
StringValueToDoubleJsonConverter() |
Methods
Name | Description |
---|---|
Read(Utf8JsonReader, Type, JsonSerializerOptions) | Read content from the JSON parser. |
Write(Utf8JsonWriter, Nullable<Double>, JsonSerializerOptions) | Writes content through a JSON parser. |