Class LenientDateTimeConverter
The lenient DateTimeConverter allows for transforming strings into (nullable) DateTime(?) objects,
even if their formatting is somehow weird.
Inheritance
System.Object
LenientDateTimeConverter
Assembly: BO4Enet.dll
public class LenientDateTimeConverter : JsonConverter
Constructors
|
Improve this Doc
View Source
Declaration
public LenientDateTimeConverter()
|
Improve this Doc
View Source
Declaration
public LenientDateTimeConverter(DateTime? defaultDateTime = null)
Parameters
| Type |
Name |
Description |
| System.Nullable<DateTime> |
defaultDateTime |
|
Properties
|
Improve this Doc
View Source
Declaration
public override bool CanWrite { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Methods
|
Improve this Doc
View Source
Declaration
public override bool CanConvert(Type objectType)
Parameters
| Type |
Name |
Description |
| Type |
objectType |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
| Type |
Name |
Description |
| JsonReader |
reader |
|
| Type |
objectType |
|
| System.Object |
existingValue |
|
| JsonSerializer |
serializer |
|
Returns
| Type |
Description |
| System.Object |
|
|
Improve this Doc
View Source
Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
| Type |
Name |
Description |
| JsonWriter |
writer |
|
| System.Object |
value |
|
| JsonSerializer |
serializer |
|
Extension Methods