Class JavaScriptDateTimeConverter
Converts a System.DateTime to and from a JavaScript date constructor (e.g. new Date(52231943)).
Inherited Members
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: Bayat.Json.Converters
Assembly: Bayat.Json.Runtime.dll
Syntax
public class JavaScriptDateTimeConverter : DateTimeConverterBase
Methods
| Improve this Doc View SourceReadJson(JsonReader, Type, Object, JsonSerializerReader)
Reads the JSON representation of the object.
Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializerReader internalReader)
Parameters
Type | Name | Description |
---|---|---|
JsonReader | reader | The JsonReader to read from. |
System.Type | objectType | Type of the object. |
System.Object | existingValue | The existing property value of the JSON that is being converted. |
JsonSerializerReader | internalReader |
Returns
Type | Description |
---|---|
System.Object | The object value. |
Overrides
| Improve this Doc View SourceWriteJson(JsonWriter, Object, JsonSerializerWriter)
Writes the JSON representation of the object.
Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializerWriter internalWriter)
Parameters
Type | Name | Description |
---|---|---|
JsonWriter | writer | The JsonWriter to write to. |
System.Object | value | The value. |
JsonSerializerWriter | internalWriter |