-Added JsonConstructorAttribute to explicitly define which constructor to use during deserialization

-Added IFormattable to JValue
-Changed JValue ToString to call ToString on the internal value
-Fixed code emit error when deserializing interfaces in certain situations
This commit is contained in:
JamesNK
2011-01-15 00:44:26 +00:00
parent 5d062cc8f8
commit 3535173716
18 changed files with 347 additions and 32 deletions
@@ -45,6 +45,14 @@ namespace Newtonsoft.Json.Serialization
/// <value>The object's properties.</value>
public JsonPropertyCollection Properties { get; private set; }
/// <summary>
/// Gets or sets the override constructor used to create the object.
/// This is set when a constructor is marked up using the
/// JsonConstructor attribute.
/// </summary>
/// <value>The override constructor.</value>
public ConstructorInfo OverrideConstructor { get; set; }
/// <summary>
/// Gets or sets the parametrized constructor used to create the object.
/// </summary>