C# 클래스 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.
상속: Newtonsoft.Json.JsonConverter
파일 보기 프로젝트 열기: RebelCMS/rebelcmsxu5

공개 메소드들

메소드 설명
CanConvert ( Type objectType ) : bool
ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void

메소드 상세

CanConvert() 공개 메소드

public CanConvert ( Type objectType ) : bool
objectType System.Type
리턴 bool

ReadJson() 공개 메소드

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

WriteJson() 공개 메소드

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