ZeroIsoDateTimeConverter - класс

Выполняет преобразование значение типа DateTime в соответствии с ISO 8601 (e.g. "2008-04-12T12:53Z").

Definition

Пространство имён: Tessa.Platform.Json
Сборка: Tessa (в Tessa.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
C#
public class ZeroIsoDateTimeConverter : IsoDateTimeConverter
Inheritance
Object    JsonConverter    DateTimeConverterBase    IsoDateTimeConverter    ZeroIsoDateTimeConverter

Заметки

В отличии от IsoDateTimeConverter поддерживает десериализацию значения, содержащего дату в виде 0000-00-00.

Возвращаемое значение, при обработке значения 0000-00-00, зависит от типа объекта. Если он является NullableT, то возвращается значение , иначе - MinValue.

Конструкторы

ZeroIsoDateTimeConverterИнициализирует новый экземпляр класса ZeroIsoDateTimeConverter

Методы

EqualsDetermines whether the specified object is equal to the current object.
(Унаследован от Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Унаследован от Object)
GetHashCodeServes as the default hash function.
(Унаследован от Object)
GetTypeGets the Type of the current instance.
(Унаследован от Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Унаследован от Object)
ReadJson
(Переопределяет IsoDateTimeConverter.ReadJson(JsonReader, Type, Object, JsonSerializer))
ToStringReturns a string that represents the current object.
(Унаследован от Object)

Поля

ZeroDateValue Значение даты, состоящее из нулей: 0000-00-00.

См. также