C# Class CallfireApiClient.CallfireContractResolver

Custom ContactResolver is used for: 1. Populate properties with private modifiers. 2. Serialize properties using camelCase names. 3. Skip serialization of empty collections. 4. Base class properties go first on serialization.
Inheritance: Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver
Afficher le fichier Open project: CallFire/callfire-api-client-csharp

Méthodes protégées

Méthode Description
CreateProperties ( Type type, MemberSerialization memberSerialization ) : IList
CreateProperty ( MemberInfo member, MemberSerialization memberSerialization ) : JsonProperty

Private Methods

Méthode Description
IsEmptyCollection ( JsonProperty property, object target ) : bool

Method Details

CreateProperties() protected méthode

protected CreateProperties ( Type type, MemberSerialization memberSerialization ) : IList
type System.Type
memberSerialization MemberSerialization
Résultat IList

CreateProperty() protected méthode

protected CreateProperty ( MemberInfo member, MemberSerialization memberSerialization ) : JsonProperty
member System.Reflection.MemberInfo
memberSerialization MemberSerialization
Résultat Newtonsoft.Json.Serialization.JsonProperty