Пример #1
0
 public static void GetObject <T>(string path, Action <T> callback,
                                  Action <AggregateException> fallback) =>
 GetJSON(path,
         json => { callback((T)StringSerializationAPI.Deserialize(typeof(T), json.GetRawJsonValue())); },
         fallback);
Пример #2
0
 public static void PushObject <T>(string path, T obj, Action callback,
                                   Action <AggregateException> fallback) =>
 PushJSON(path, StringSerializationAPI.Serialize(typeof(T), obj), callback, fallback);