C# Client Library
A C# Client Library for the AnalyzeRe REST API
|
A custom property contract resolver which allows Server-Generated Analyze Re properties (ServerGenerated) to be ignored on serialization. More...
Public Member Functions | |
AnalyzeReSerializationContractResolver (bool ignoreServerGeneratedProperties=true) | |
Construct a contract resolver that optionally ignores properties with the ServerGenerated attribute set on JSON serialization/deserialization. | |
Protected Member Functions | |
override JsonProperty | CreateProperty (MemberInfo member, MemberSerialization memberSerialization) |
Instantiates a JsonProperty for the specified member if it has not been excluded by the AllowMember predicate. | |
override List< MemberInfo > | GetSerializableMembers (Type objectType) |
Gets the serializable members for the specified type, filtered by the configured predicate (if any). If the same type is requested multiple times for the same instance, performance is improved by returning a cached result. | |
Properties | |
Func< MemberInfo, bool > | AllowMember [get] |
If specified on construction, only members that return true for this predicate will be serialized and instantiated on deserialization. | |
bool | IgnoreServerGeneratedProperties [get] |
Whether this serializer is configured to ignore server generated properties. | |
A custom property contract resolver which allows Server-Generated Analyze Re properties (ServerGenerated) to be ignored on serialization.
Also configured to ignore members with the IgnoreDataMemberAttribute set. See RespectIgnoreDataMemberResolver for details.
Definition at line 13 of file AnalyzeReContractResolver.cs.
|
inline |
Construct a contract resolver that optionally ignores properties with the ServerGenerated attribute set on JSON serialization/deserialization.
ignoreServerGeneratedProperties | Optional (default: true) - Controls whether server-generated properties should be ignored during serialization/deserialization. |
Definition at line 24 of file AnalyzeReContractResolver.cs.
|
sealedprotectedinherited |
Instantiates a JsonProperty for the specified member if it has not been excluded by the AllowMember predicate.
|
sealedprotectedinherited |
Gets the serializable members for the specified type, filtered by the configured predicate (if any). If the same type is requested multiple times for the same instance, performance is improved by returning a cached result.
|
getinherited |
If specified on construction, only members that return true for this predicate will be serialized and instantiated on deserialization.
Definition at line 29 of file CachedContractResolver.cs.
|
get |
Whether this serializer is configured to ignore server generated properties.
Must be assigned at construction time.
Definition at line 17 of file AnalyzeReContractResolver.cs.