C# Class Newtonsoft.Json.Converters.JavaScriptDateTimeConverter

Converts a DateTime to and from a JavaScript date constructor (e.g. new Date(52231943)).
Inheritance: JsonConverter
Exibir arquivo Open project: runegri/Applicable Class Usage Examples

Public Methods

Method Description
ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object

Reads the JSON representation of the object.

WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void

Writes the JSON representation of the object.

Method Details

ReadJson() public method

Reads the JSON representation of the object.
public ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
reader JsonReader The to read from.
objectType System.Type Type of the object.
existingValue object The existing property value of the JSON that is being converted.
serializer JsonSerializer The calling serializer.
return object

WriteJson() public method

Writes the JSON representation of the object.
public WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void
writer JsonWriter The to write to.
value object The value.
serializer JsonSerializer The calling serializer.
return void