-Performance
-Added ConstructorHandling to allow object creation using non-public default constructors
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Newtonsoft.Json.Serialization
|
||||
{
|
||||
@@ -44,6 +45,12 @@ namespace Newtonsoft.Json.Serialization
|
||||
/// <value>The object's properties.</value>
|
||||
public JsonPropertyCollection Properties { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the parametrized constructor used to create the object.
|
||||
/// </summary>
|
||||
/// <value>The parametrized constructor.</value>
|
||||
public ConstructorInfo ParametrizedConstructor { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="JsonObjectContract"/> class.
|
||||
/// </summary>
|
||||
@@ -52,6 +59,7 @@ namespace Newtonsoft.Json.Serialization
|
||||
: base(underlyingType)
|
||||
{
|
||||
Properties = new JsonPropertyCollection();
|
||||
CreatedType = underlyingType;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user