Click or drag to resize

Date2JsonConverter Class

Handles dates as integer values in JSON, to save space.
Inheritance Hierarchy

Namespace: Austra.Library.Dates
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.8.0+892c66cd78254e5a7ad663c063da400b3042cf5b
Syntax
C#
public class Date2JsonConverter : JsonConverter<Date>

The Date2JsonConverter type exposes the following members.

Constructors
 NameDescription
Public methodDate2JsonConverterInitializes a new instance of the Date2JsonConverter class
Top
Properties
 NameDescription
Public propertyHandleNullGets a value that indicates whether should be passed to the converter on serialization, and whether Null should be passed on deserialization.
(Inherited from JsonConverterDate)
Public propertyTypeGets the type being converted by the current converter instance.
(Inherited from JsonConverterDate)
Top
Methods
 NameDescription
Public methodCanConvertDetermines whether the specified type can be converted.
(Inherited from JsonConverterDate)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodReadReads an unsigned number from JSON and converts it to a date
(Overrides JsonConverterTRead(Utf8JsonReader, Type, JsonSerializerOptions))
Public methodReadAsPropertyNameReads a dictionary key from a JSON property name.
(Inherited from JsonConverterDate)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWriteConverts this date to JSON as an unsigned number.
(Overrides JsonConverterTWrite(Utf8JsonWriter, T, JsonSerializerOptions))
Public methodWriteAsPropertyNameWrites a dictionary key as a JSON property name.
(Inherited from JsonConverterDate)
Top
See Also