-Performance

-Added ConstructorHandling to allow object creation using non-public default constructors
This commit is contained in:
JamesNK
2009-10-10 06:09:15 +00:00
parent 75627d6292
commit 7e75bbdcf7
26 changed files with 388 additions and 54 deletions
@@ -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;
}
}
}