C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
AnalyzeReContractResolver.cs
Go to the documentation of this file.
1using System.Runtime.Serialization;
2
5
7{
14 {
18
24 public AnalyzeReSerializationContractResolver(bool ignoreServerGeneratedProperties = true) :
25 base(pi => !(pi.IsAttributeDefinedFast<IgnoreDataMemberAttribute>() ||
26 ignoreServerGeneratedProperties && pi.IsAttributeDefinedFast<ServerGenerated>()))
27 {
28 IgnoreServerGeneratedProperties = ignoreServerGeneratedProperties;
29 }
30 }
31}
Specifies that a property is generated by the server and should not be specified on the client side d...
A custom property contract resolver which allows Server-Generated Analyze Re properties (ServerGenera...
bool IgnoreServerGeneratedProperties
Whether this serializer is configured to ignore server generated properties.
AnalyzeReSerializationContractResolver(bool ignoreServerGeneratedProperties=true)
Construct a contract resolver that optionally ignores properties with the ServerGenerated attribute s...
A wrapper for the basic DefaultContractResolver which caches the set of members to be serialized for ...