JsonSchemaContractResolver Constructor (IContractResolver, IContractResolver)

Initializes a new instance of the JsonSchemaContractResolver class with the specified IContractResolvers.

Namespace:  TcHmiSrv.Core.Tools.DynamicSymbols
Assembly:  TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 1.3.0.0

Syntax

C#

public JsonSchemaContractResolver(
    IContractResolver preContractResolver,
    IContractResolver postContractResolver
)

Parameters

preContractResolver

Type: IContractResolver
An IContractResolver that is used to resolve a JsonContract for a given Type before JsonSchemaContractResolver tries to resolve the JsonContract. -or- null to use the resolving mechanism of JsonSchemaContractResolver. The resolving mechanism of JsonSchemaContractResolver is also used if IContractResolver.ResolveContract(Type) returns null.

postContractResolver

Type: IContractResolver
An IContractResolver that is used to resolve a JsonContract for a given Type after JsonSchemaContractResolver tried to resolve the JsonContract. -or- null to use the resolving mechanism of DefaultContractResolver. The resolving mechanism of DefaultContractResolver is also used if IContractResolver.ResolveContract(Type) returns null.

Reference

JsonSchemaContractResolver Class

JsonSchemaContractResolver Overload

TcHmiSrv.Core.Tools.DynamicSymbols Namespace