Click or drag to resize
Json.NET

ConstructorHandling Enumeration

 
Specifies how constructors are used when initializing objects during deserialization by the JsonSerializer.

Namespace:  Newtonsoft.Json
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public enum ConstructorHandling
Members
  Member nameValueDescription
Default0 First attempt to use the public default constructor, then fall back to a single parameterized constructor, then to the non-public default constructor.
AllowNonPublicDefaultConstructor1 Json.NET will use a non-public default constructor before falling back to a parameterized constructor.
See Also