C# 클래스 LtiLibrary.Core.Common.JsonLdObjectConverter

Serialize a JsonLdObject to JSON representation.
Collects JsonLdObject Terms and writes them first as @context. Does not convert JSON to a JsonLdObject.
상속: Newtonsoft.Json.JsonConverter
파일 보기 프로젝트 열기: andyfmiller/LtiLibrary

공개 메소드들

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

Writes the JSON representation of the object.

비공개 메소드들

메소드 설명
GetExternalContextId ( IJsonLdObject obj ) : Uri

Get the external context from this object.

GetTerms ( IJsonLdObject obj ) : string>.IDictionary

Collect the terms from the JsonLdObject and all its child properties.

메소드 상세

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() 공개 메소드

Writes the JSON representation of the object.
public WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void
writer Newtonsoft.Json.JsonWriter The Newtonsoft.Json.JsonWriter to write to.
value object The value.
serializer Newtonsoft.Json.JsonSerializer The calling serializer.
리턴 void