C# Class Baidu.SDK.Push.Utility.UnixDateTimeConverter

Useful when serializing/deserializing json for use with the Stack Overflow API, which produces and consumes Unix Timestamp dates
swiped from lfoust and fixed for latest json.net with some tweaks for handling out-of-range dates
Inheritance: Newtonsoft.Json.Converters.DateTimeConverterBase
Datei anzeigen Open project: JiyongShi/Baidu.SDK.Push

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 Newtonsoft.Json.JsonReader The to read from.
objectType System.Type Type of the object.
existingValue object The existing value of object being read.
serializer Newtonsoft.Json.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 Newtonsoft.Json.JsonWriter The to write to.
value object The value.
serializer Newtonsoft.Json.JsonSerializer The calling serializer.
return void