Date2JsonConverter Class

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

Definition

Namespace: Austra.Library.Dates
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.5.0+d1268756e036101f601080f153b3997e72fc912d
C#
public class Date2JsonConverter : JsonConverter<Date>
Inheritance
Object    JsonConverter    JsonConverterDate    Date2JsonConverter

Constructors

Date2JsonConverterInitializes a new instance of the Date2JsonConverter class

Properties

HandleNullGets a value that indicates whether should be passed to the converter on serialization, and whether Null should be passed on deserialization.
(Inherited from JsonConverterDate)
TypeGets the type being converted by the current converter instance.
(Inherited from JsonConverterDate)

Methods

CanConvertDetermines whether the specified type can be converted.
(Inherited from JsonConverterDate)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
ReadReads an unsigned number from JSON and converts it to a date
(Overrides JsonConverterTRead(Utf8JsonReader, Type, JsonSerializerOptions))
ReadAsPropertyNameReads a dictionary key from a JSON property name.
(Inherited from JsonConverterDate)
ToStringReturns a string that represents the current object.
(Inherited from Object)
WriteConverts this date to JSON as an unsigned number.
(Overrides JsonConverterTWrite(Utf8JsonWriter, T, JsonSerializerOptions))
WriteAsPropertyNameWrites a dictionary key as a JSON property name.
(Inherited from JsonConverterDate)

See Also