Ext.NET specific enums converter. Will take in consideration enums' JavaScriptMap and ConfigOptions' LowerCase and LowerCamelCase JsonModes while doing the map and map back.
More...
|
override bool | CanConvert (Type valueType) |
|
override void | WriteJson (Newtonsoft.Json.JsonWriter writer, object value, JsonSerializer serializer) |
| Converts the Enum to a json string. Uses JavaScriptMap attribute's value if present. More...
|
|
override object | ReadJson (Newtonsoft.Json.JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) |
| Maps back the string representation of the specified Enum type, with the JavaScriptMap attribute taking precedence match over the enum name itself. It is case-sensitive. If the enum's field has no JavaScriptMap attribute, the ordinary Enum name matching is used. More...
|
|
Ext.NET specific enums converter. Will take in consideration enums' JavaScriptMap and ConfigOptions' LowerCase and LowerCamelCase JsonModes while doing the map and map back.
◆ CanConvert()
override bool Ext.Net.ExtNetEnumJsonConverter.CanConvert |
( |
Type |
valueType | ) |
|
|
inline |
◆ ReadJson()
override object Ext.Net.ExtNetEnumJsonConverter.ReadJson |
( |
Newtonsoft.Json.JsonReader |
reader, |
|
|
Type |
objectType, |
|
|
object |
existingValue, |
|
|
JsonSerializer |
serializer |
|
) |
| |
|
inline |
Maps back the string representation of the specified Enum type, with the JavaScriptMap attribute taking precedence match over the enum name itself. It is case-sensitive. If the enum's field has no JavaScriptMap attribute, the ordinary Enum name matching is used.
◆ WriteJson()
override void Ext.Net.ExtNetEnumJsonConverter.WriteJson |
( |
Newtonsoft.Json.JsonWriter |
writer, |
|
|
object |
value, |
|
|
JsonSerializer |
serializer |
|
) |
| |
|
inline |
Converts the Enum to a json string. Uses JavaScriptMap attribute's value if present.
The documentation for this class was generated from the following file:
- ExtNetEnumJsonConverter.cs