Implemented support for passing arguments to parameterized JsonConverter constructors.

This commit is contained in:
BrandonLWhite
2014-09-13 17:48:50 -05:00
parent b3e667fa78
commit 12c33e70d2
7 changed files with 223 additions and 10 deletions
@@ -53,6 +53,17 @@ namespace Newtonsoft.Json
/// <value>The collection's items converter.</value>
public Type ItemConverterType { get; set; }
/// <summary>
/// The parameter list to use when constructing the JsonConverter described by ItemConverterType.
/// If null, the default constructor is used.
/// When non-null, there must be a constructor defined in the JsonConverter that exactly matches the number,
/// order, and type of these parameters.
/// </summary>
/// <example>
/// [JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
/// </example>
public object[] ItemConverterParameters { get; set; }
/// <summary>
/// Gets or sets the null value handling used when serializing this property.
/// </summary>