Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="data"></param>
 /// <param name="type"></param>
 /// <returns></returns>
 public object Deserialize(byte[] data, Type type)
 {
     return(JsonUtils.DeserializeCustom(_encoding.GetString(data), type));
 }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public byte[] Serialize(object obj)
 {
     return(_encoding.GetBytes(JsonUtils.SerializeCustom(obj)));
 }