Class RFC3339DateTimeConverter (1.68.0)

public class RFC3339DateTimeConverter : JsonConverter

A JSON converter which honers RFC 3339 and the serialized date is accepted by Google services.

Inheritance

object > Newtonsoft.Json.JsonConverter > RFC3339DateTimeConverter

Namespace

Google.Apis.Json

Assembly

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

true if this Newtonsoft.Json.JsonConverter can read JSON; otherwise, false.

Overrides
Newtonsoft.Json.JsonConverter.CanRead

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

true if this instance can convert the specified object type; otherwise, false.

Overrides

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.

Overrides

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.

Overrides

Extension Method