Esempio n. 1
0
 public override JSAlias <TNative> ReadJson(JsonReader reader, Type objectType, JSAlias <TNative> existingValue, bool hasExistingValue, JsonSerializer serializer)
 {
     return(JSAlias <TNative> .New <TAlias>((TNative)reader.Value));
 }
Esempio n. 2
0
 public override void WriteJson(JsonWriter writer, JSAlias <TNative> value, JsonSerializer serializer)
 {
     writer.WriteValue(value.Value);
 }