public class RFC3339DateTimeConverter : JsonConverter
A JSON converter which honers RFC 3339 and the serialized date is accepted by Google services.
Namespace
Google.Apis.JsonAssembly
Google.Apis.Core.dll
Properties
CanRead
public override bool CanRead { get; }
Gets a value indicating whether this Newtonsoft.Json.JsonConverter can read JSON.
Property Value | |
---|---|
Type | Description |
bool |
|
Methods
CanConvert(Type)
public override bool CanConvert(Type objectType)
Determines whether this instance can convert the specified object type.
Parameter | |
---|---|
Name | Description |
objectType |
Type Type of the object. |
Returns | |
---|---|
Type | Description |
bool |
|
ReadJson(JsonReader, Type, object, JsonSerializer)
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Reads the JSON representation of the object.
Parameters | |
---|---|
Name | Description |
reader |
Newtonsoft.Json.JsonReader The Newtonsoft.Json.JsonReader to read from. |
objectType |
Type Type of the object. |
existingValue |
object The existing value of object being read. |
serializer |
Newtonsoft.Json.JsonSerializer The calling serializer. |
Returns | |
---|---|
Type | Description |
object |
The object value. |
WriteJson(JsonWriter, object, JsonSerializer)
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Writes the JSON representation of the object.
Parameters | |
---|---|
Name | Description |
writer |
Newtonsoft.Json.JsonWriter The Newtonsoft.Json.JsonWriter to write to. |
value |
object The value. |
serializer |
Newtonsoft.Json.JsonSerializer The calling serializer. |