Json.NET - Quick Starts & API Documentation
ConstructorHandling Enumeration
Namespaces ► Newtonsoft.Json ► ConstructorHandling
Specifies how constructors are used when initializing objects during deserialization by the JsonSerializer.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public enum ConstructorHandling
Public Enumeration ConstructorHandling
public enum class ConstructorHandling
Members
Member | Description |
---|---|
Default |
First attempt to use the public default constructor, then fall back to single paramatized constructor, then the non-public default constructor.
|
AllowNonPublicDefaultConstructor |
Json.NET will use a non-public default constructor before falling back to a paramatized constructor.
|