Changed naming of JsonConverterAttribute.ConverterArgs to "ConverterParameters" for consistency.

This commit is contained in:
BrandonLWhite
2014-09-13 18:14:06 -05:00
parent 12c33e70d2
commit 977bc30368
2 changed files with 5 additions and 5 deletions
@@ -50,7 +50,7 @@ namespace Newtonsoft.Json
/// The parameter list to use when constructing the JsonConverter described by ConverterType. /// The parameter list to use when constructing the JsonConverter described by ConverterType.
/// If null, the default constructor is used. /// If null, the default constructor is used.
/// </summary> /// </summary>
public object[] ConverterArgs { get; private set; } public object[] ConverterParameters { get; private set; }
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="JsonConverterAttribute"/> class. /// Initializes a new instance of the <see cref="JsonConverterAttribute"/> class.
@@ -68,11 +68,11 @@ namespace Newtonsoft.Json
/// Initializes a new instance of the <see cref="JsonConverterAttribute"/> class. /// Initializes a new instance of the <see cref="JsonConverterAttribute"/> class.
/// </summary> /// </summary>
/// <param name="converterType">Type of the converter.</param> /// <param name="converterType">Type of the converter.</param>
/// <param name="converterArgs">Parameter list to use when constructing the JsonConverter. Can be null.</param> /// <param name="converterParameters">Parameter list to use when constructing the JsonConverter. Can be null.</param>
public JsonConverterAttribute(Type converterType, params object[] converterArgs) public JsonConverterAttribute(Type converterType, params object[] converterParameters)
: this(converterType) : this(converterType)
{ {
ConverterArgs = converterArgs; ConverterParameters = converterParameters;
} }
} }
} }
@@ -155,7 +155,7 @@ namespace Newtonsoft.Json.Serialization
{ {
Func<object[], JsonConverter> creator = JsonConverterCreatorCache.Get(converterAttribute.ConverterType); Func<object[], JsonConverter> creator = JsonConverterCreatorCache.Get(converterAttribute.ConverterType);
if (creator != null) if (creator != null)
return creator(converterAttribute.ConverterArgs); return creator(converterAttribute.ConverterParameters);
} }
return null; return null;