You are here: Symbol Reference > Stimulsoft.Base.Json.Serialization Namespace > DefaultContractResolver Class > DefaultContractResolver Constructor > DefaultContractResolver Constructor (bool)
Stimulsoft Reports Class Reference
ContentsIndexHome
PreviousUpNext
DefaultContractResolver.DefaultContractResolver Constructor (bool)

Initializes a new instance of the DefaultContractResolver class.

Syntax
C++
C#
Visual Basic
public: DefaultContractResolver( bool shareCache );
Parameters
Parameters 
Description 
shareCache 
If set to true the DefaultContractResolver will use a cached shared with other resolvers of the same type. Sharing the cache will significantly improve performance with multiple resolver instances because expensive reflection will only happen once. This setting can cause unexpected behavior if different instances of the resolver are suppose to produce different results. When set to false it is highly recommended to reuse DefaultContractResolver instances with the JsonSerializer.  
Made with Doc-O-Matic.
What do you think about this topic? Send feedback!
Copyright (c) 2017. All rights reserved.