Add construct public StringEnumConverter(bool camelCaseText, bool all… (#1700)
This commit is contained in:
@@ -77,6 +77,16 @@ namespace Newtonsoft.Json.Converters
|
||||
CamelCaseText = camelCaseText;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="StringEnumConverter"/> class.
|
||||
/// </summary>
|
||||
/// <param name="camelCaseText"><c>true</c> if the written enum text will be camel case; otherwise, <c>false</c>.</param>
|
||||
/// <param name="allowIntegerValues"><c>true</c> if integers are allowed when deserializing; otherwise, <c>false</c>.</param>
|
||||
public StringEnumConverter(bool camelCaseText, bool allowIntegerValues) : this(camelCaseText)
|
||||
{
|
||||
AllowIntegerValues = allowIntegerValues;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Writes the JSON representation of the object.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user