Click or drag to resize
Json.NET

StringEnumConverter Constructor (NamingStrategy, Boolean)

 
Initializes a new instance of the StringEnumConverter class.

Namespace:  Newtonsoft.Json.Converters
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
public StringEnumConverter(
	NamingStrategy namingStrategy,
	bool allowIntegerValues = true
)

Parameters

namingStrategy
Type: Newtonsoft.Json.SerializationNamingStrategy
The naming strategy used to resolve how enum text is written.
allowIntegerValues (Optional)
Type: SystemBoolean
true if integers are allowed when serializing and deserializing; otherwise, false.
See Also