-Initial naming strategy implementation
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
|
||||
namespace Newtonsoft.Json
|
||||
{
|
||||
@@ -48,15 +49,15 @@ namespace Newtonsoft.Json
|
||||
internal TypeNameHandling? _itemTypeNameHandling;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the converter used when serializing the property's collection items.
|
||||
/// Gets or sets the <see cref="JsonConverter"/> used when serializing the property's collection items.
|
||||
/// </summary>
|
||||
/// <value>The collection's items converter.</value>
|
||||
/// <value>The collection's items <see cref="JsonConverter"/>.</value>
|
||||
public Type ItemConverterType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The parameter list to use when constructing the JsonConverter described by ItemConverterType.
|
||||
/// The parameter list to use when constructing the <see cref="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,
|
||||
/// When non-null, there must be a constructor defined in the <see cref="JsonConverter"/> that exactly matches the number,
|
||||
/// order, and type of these parameters.
|
||||
/// </summary>
|
||||
/// <example>
|
||||
@@ -64,7 +65,21 @@ namespace Newtonsoft.Json
|
||||
/// </example>
|
||||
public object[] ItemConverterParameters { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the <see cref="Type"/> of the <see cref="INamingStrategy"/>.
|
||||
/// </summary>
|
||||
/// <value>The <see cref="Type"/> of the <see cref="INamingStrategy"/>.</value>
|
||||
public Type NamingStrategyType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The parameter list to use when constructing the <see cref="INamingStrategy"/> described by NamingStrategyType.
|
||||
/// If null, the default constructor is used.
|
||||
/// When non-null, there must be a constructor defined in the <see cref="INamingStrategy"/> that exactly matches the number,
|
||||
/// order, and type of these parameters.
|
||||
/// </summary>
|
||||
/// <example>
|
||||
/// [JsonProperty(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })]
|
||||
/// </example>
|
||||
public object[] NamingStrategyParameters { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user