StringEnumConverter Class

Json.NET

Json.NET - Quick Starts & API Documentation StringEnumConverter Class
NamespacesNewtonsoft.Json.ConvertersStringEnumConverter
Converts an Enum to and from its name string value.
Converts an Enum to and from its name string value.
Declaration Syntax
C# Visual Basic Visual C++
public class StringEnumConverter : JsonConverter
Public Class StringEnumConverter _
	Inherits JsonConverter
public ref class StringEnumConverter : public JsonConverter
Members
All Members Constructors Methods Properties



Icon Member Description
StringEnumConverter()()()()
Initializes a new instance of the StringEnumConverter class

CamelCaseText
Gets or sets a value indicating whether the written enum text should be camel case.

CanConvert(Type)
Determines whether this instance can convert the specified object type.
(Overrides JsonConverter.CanConvert(Type).)
CanRead
Gets a value indicating whether this JsonConverter can read JSON.
(Inherited from JsonConverter.)
CanWrite
Gets a value indicating whether this JsonConverter can write JSON.
(Inherited from JsonConverter.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetSchema()()()()
Gets the JsonSchema of the JSON produced by the JsonConverter.
(Inherited from JsonConverter.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ReadJson(JsonReader, Type, Object, JsonSerializer)
Reads the JSON representation of the object.
(Overrides JsonConverter.ReadJson(JsonReader, Type, Object, JsonSerializer).)
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
WriteJson(JsonWriter, Object, JsonSerializer)
Writes the JSON representation of the object.
(Overrides JsonConverter.WriteJson(JsonWriter, Object, JsonSerializer).)
Inheritance Hierarchy
Object
JsonConverter
  StringEnumConverter

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 4.5.0.0 (4.5.6.14930)