Class TimeSpanJsonConverter
A time span JSON converter.
Implements
Inherited Members
Newtonsoft.Json.JsonConverter.CanRead
Newtonsoft.Json.JsonConverter.CanWrite
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Serialization.Json.Converters
Assembly: Kephas.Serialization.Json.dll
Syntax
public class TimeSpanJsonConverter : JsonConverterBase, IJsonConverter
Methods
| Improve this Doc View SourceCanConvert(Type)
Determines whether this instance can convert the specified object type.
Declaration
public override bool CanConvert(Type objectType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | objectType | Type of the object. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
Newtonsoft.Json.JsonConverter.CanConvert(System.Type)
|
Improve this Doc
View Source
ReadJson(JsonReader, Type, Object, JsonSerializer)
Reads the JSON representation of the object.
Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
Newtonsoft.Json.JsonReader | reader | The Newtonsoft.Json.JsonReader to read from. |
System.Type | objectType | Type of the object. |
System.Object | existingValue | The existing value of object being read. |
Newtonsoft.Json.JsonSerializer | serializer | The calling serializer. |
Returns
Type | Description |
---|---|
System.Object | The object value. |
Overrides
Newtonsoft.Json.JsonConverter.ReadJson(Newtonsoft.Json.JsonReader, System.Type, System.Object, Newtonsoft.Json.JsonSerializer)
|
Improve this Doc
View Source
WriteJson(JsonWriter, Object, JsonSerializer)
Writes the JSON representation of the object.
Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
Newtonsoft.Json.JsonWriter | writer | The Newtonsoft.Json.JsonWriter to write to. |
System.Object | value | The value. |
Newtonsoft.Json.JsonSerializer | serializer | The calling serializer. |
Overrides
Newtonsoft.Json.JsonConverter.WriteJson(Newtonsoft.Json.JsonWriter, System.Object, Newtonsoft.Json.JsonSerializer)