Json.NET - Quick Starts & API Documentation
ResolveContract Method (type)
Namespaces ► Newtonsoft.Json.Serialization ► DefaultContractResolver ► ResolveContract(Type)
Resolves the contract for a given type.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual JsonContract ResolveContract( Type type )
Public Overridable Function ResolveContract ( _ type As Type _ ) As JsonContract
public: virtual JsonContract^ ResolveContract( Type^ type )
Parameters
- type (Type)
- The type to resolve a contract for.
Return Value
The contract for a given type.