Ext.NET  5.3.0
.NET Component Framework for Enterprise Level Apps
Ext.Net.ExtNetEnumJsonConverter Class Reference

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...

Inheritance diagram for Ext.Net.ExtNetEnumJsonConverter:
Ext.Net.ExtJsonConverter

Public Member Functions

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...
 

Additional Inherited Members

- Properties inherited from Ext.Net.ExtJsonConverter
string PropertyName [get, set]
 
string Name [get, set]
 
object Owner [get, set]
 
Control OwnerControl [get]
 

Detailed Description

Ext.NET specific enums converter. Will take in consideration enums' JavaScriptMap and ConfigOptions' LowerCase and LowerCamelCase JsonModes while doing the map and map back.

Member Function Documentation

◆ 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: