Show / Hide Table of Contents

    Class DateTimeConverterBase

    Provides a base class for converting a System.DateTime to and from JSON.

    Inheritance
    System.Object
    JsonConverter
    DateTimeConverterBase
    IsoDateTimeConverter
    JavaScriptDateTimeConverter
    Inherited Members
    JsonConverter.WriteJson(JsonWriter, Object, JsonSerializerWriter)
    JsonConverter.ReadJson(JsonReader, Type, Object, JsonSerializerReader)
    JsonConverter.CanRead
    JsonConverter.CanWrite
    JsonConverter.IsGenericConverter
    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 abstract class DateTimeConverterBase : JsonConverter

    Methods

    | Improve this Doc View Source

    CanConvert(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

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

    Overrides
    JsonConverter.CanConvert(Type)
    • Improve this Doc
    • View Source
    • 0 Comments
    In This Article
    • Methods
      • CanConvert(Type)