Class StringFlagsEnumConverter
Converts a FlagsEnum to its name string value.
Inheritance
System.Object
StringFlagsEnumConverter
Namespace: Cuemon.Serialization.Json.Converters
Assembly: Cuemon.Serialization.Json.dll
Syntax
public class StringFlagsEnumConverter : StringEnumConverter
Constructors
| Improve this DocStringFlagsEnumConverter()
Initializes a new instance of the StringFlagsEnumConverter class.
Declaration
public StringFlagsEnumConverter()
Methods
| Improve this DocReadJson(JsonReader, Type, Object, JsonSerializer)
Reads the JSON representation of the object.
Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
JsonReader | reader | The Newtonsoft.Json.JsonReader to read from. |
Type | objectType | Type of the object. |
System.Object | existingValue | The existing value of object being read. |
JsonSerializer | serializer | The calling serializer. |
Returns
Type | Description |
---|---|
System.Object | The object value. |
WriteJson(JsonWriter, Object, JsonSerializer)
Writes the JSON representation of the object.
Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
JsonWriter | writer | The Newtonsoft.Json.JsonWriter to write to. |
System.Object | value | The value. |
JsonSerializer | serializer | The calling serializer. |