Class NullableTimeSpanConverter
Inheritance
System.Object
NullableTimeSpanConverter
Assembly: Scraper.Net.dll
Syntax
public class NullableTimeSpanConverter : JsonConverter<TimeSpan?>
Methods
|
Improve this Doc
View Source
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Declaration
public override TimeSpan? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
| Type |
Name |
Description |
| Utf8JsonReader |
reader |
|
| Type |
typeToConvert |
|
| JsonSerializerOptions |
options |
|
Returns
| Type |
Description |
| System.Nullable<TimeSpan> |
|
|
Improve this Doc
View Source
Write(Utf8JsonWriter, Nullable<TimeSpan>, JsonSerializerOptions)
Declaration
public override void Write(Utf8JsonWriter writer, TimeSpan? value, JsonSerializerOptions options)
Parameters
| Type |
Name |
Description |
| Utf8JsonWriter |
writer |
|
| System.Nullable<TimeSpan> |
value |
|
| JsonSerializerOptions |
options |
|