C# Class AsyncParse.Net.Converters.ZuluDateTimeConverter

Inheritance: Newtonsoft.Json.JsonConverter
ファイルを表示 Open project: malixsys/AsyncParse.Net Class Usage Examples

Public Methods

Method Description
CanConvert ( Type objectType ) : bool
FromZuluString ( string str ) : System.DateTime
ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
ToZuluString ( System.DateTime obj ) : string
WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void

Method Details

CanConvert() public method

public CanConvert ( Type objectType ) : bool
objectType System.Type
return bool

FromZuluString() public static method

public static FromZuluString ( string str ) : System.DateTime
str string
return System.DateTime

ReadJson() public method

public ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
reader Newtonsoft.Json.JsonReader
objectType System.Type
existingValue object
serializer Newtonsoft.Json.JsonSerializer
return object

ToZuluString() public static method

public static ToZuluString ( System.DateTime obj ) : string
obj System.DateTime
return string

WriteJson() public method

public WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void
writer Newtonsoft.Json.JsonWriter
value object
serializer Newtonsoft.Json.JsonSerializer
return void