C# Class Rebel.Framework.HiveIdJsonConverter

Used to convert a HiveId to a Json object
By default, the HiveId struct is not prefixed to use this converter, this class exists in case you require a HiveId property of your object to be serialized to the correct Json format instead of just a string for use in JavaScript.
Inheritance: Newtonsoft.Json.JsonConverter
ファイルを表示 Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
CanConvert ( Type objectType ) : bool
ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void

Method Details

CanConvert() public method

public CanConvert ( Type objectType ) : bool
objectType System.Type
return bool

ReadJson() public method

public ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
reader Newtonsoft.Json.JsonReader
objectType System.Type
existingValue object
serializer Newtonsoft.Json.JsonSerializer
return object

WriteJson() public method

public WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void
writer Newtonsoft.Json.JsonWriter
value object
serializer Newtonsoft.Json.JsonSerializer
return void