AccessCustomBooleanJsonConverter Class

Modification du convertisseur Json pour prendre en compte les booléens classe trouvée sur le site : https://www.thecodebuzz.com/newtonsoft-jsonreaderexception-could-not-convert-string-to-boolean/

Definition

Namespace: MediaTekDocuments.dal
Assembly: MediaTekDocuments (in MediaTekDocuments.exe) Version: 1.0.0.0 (1.0.0.0)
C#
private sealed class CustomBooleanJsonConverter : JsonConverter<bool>
Inheritance
Object    JsonConverter    JsonConverterBoolean    AccessCustomBooleanJsonConverter

Constructors

AccessCustomBooleanJsonConverterInitializes a new instance of the AccessCustomBooleanJsonConverter class

Properties

CanRead
(Inherited from JsonConverter)
CanWrite
(Inherited from JsonConverter)

Methods

CanConvert
(Inherited from JsonConverterBoolean)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
ReadJson(JsonReader, Type, Object, JsonSerializer)
(Inherited from JsonConverterBoolean)
ReadJson(JsonReader, Type, Boolean, Boolean, JsonSerializer)
(Overrides JsonConverter.ReadJson(JsonReader, Type, UTP, Boolean, JsonSerializer))
ToStringReturns a string that represents the current object.
(Inherited from Object)
WriteJson(JsonWriter, Boolean, JsonSerializer)
(Overrides JsonConverter.WriteJson(JsonWriter, UTP, JsonSerializer))
WriteJson(JsonWriter, Object, JsonSerializer)
(Inherited from JsonConverterBoolean)

See Also