Class IsoDateTimeConverter
Converts a System.
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 IsoDateTimeConverter : DateTimeConverterBase
Properties
| Improve this Doc View SourceCulture
Gets or sets the culture used when converting a date to and from JSON.
Declaration
public CultureInfo Culture { get; set; }
Property Value
Type | Description |
---|---|
System. |
The culture used when converting a date to and from JSON. |
DateTimeFormat
Gets or sets the date time format used when converting a date to and from JSON.
Declaration
public string DateTimeFormat { get; set; }
Property Value
Type | Description |
---|---|
System. |
The date time format used when converting a date to and from JSON. |
DateTimeStyles
Gets or sets the date time styles used when converting a date to and from JSON.
Declaration
public DateTimeStyles DateTimeStyles { get; set; }
Property Value
Type | Description |
---|---|
System. |
The date time styles used when converting a date to and from JSON. |
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 |
---|---|---|
Json |
reader | The Json |
System. |
objectType | Type of the object. |
System. |
existingValue | The existing value of object being read. |
Json |
internalReader |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
Json |
writer | The Json |
System. |
value | The value. |
Json |
internalWriter |