C# Class NSwag.Integration.ClientPCL.JsonExceptionConverter

Inheritance: Newtonsoft.Json.JsonConverter
Afficher le fichier Open project: NSwag/NSwag

Méthodes publiques

Méthode Description
CanConvert ( System objectType ) : bool
JsonExceptionConverter ( ) : NSwag.Integration.ClientPCL.Contracts
ReadJson ( Newtonsoft reader, System objectType, object existingValue, Newtonsoft serializer ) : object
WriteJson ( Newtonsoft writer, object value, Newtonsoft serializer ) : void

Private Methods

Méthode Description
GetExceptionProperties ( System exceptionType ) : string>.System.Collections.Generic.IDictionary
GetField ( System type, string fieldName ) : System.Reflection.FieldInfo
SetExceptionFieldValue ( Newtonsoft jObject, string propertyName, object value, string fieldName, Newtonsoft resolver, Newtonsoft serializer ) : void

Method Details

CanConvert() public méthode

public CanConvert ( System objectType ) : bool
objectType System
Résultat bool

JsonExceptionConverter() public méthode

public JsonExceptionConverter ( ) : NSwag.Integration.ClientPCL.Contracts
Résultat NSwag.Integration.ClientPCL.Contracts

ReadJson() public méthode

public ReadJson ( Newtonsoft reader, System objectType, object existingValue, Newtonsoft serializer ) : object
reader Newtonsoft
objectType System
existingValue object
serializer Newtonsoft
Résultat object

WriteJson() public méthode

public WriteJson ( Newtonsoft writer, object value, Newtonsoft serializer ) : void
writer Newtonsoft
value object
serializer Newtonsoft
Résultat void