public T Deserialize<T>(string json, IList<byte[]> bytes) { var converter = new ByteArrayConverter(); converter.Bytes.AddRange(bytes); var settings = GetOptions(); settings.Converters.Add(converter); return JsonConvert.DeserializeObject<T>(json, settings); }
public T Deserialize <T>(string json, IList <byte[]> bytes) { var converter = new ByteArrayConverter(eio); var settings = CreateOptions(); settings.Converters.Add(converter); return(JsonConvert.DeserializeObject <T>(json, settings)); }
public JsonSerializeResult Serialize(object[] data) { var converter = new ByteArrayConverter(); var settings = GetOptions(); settings.Converters.Add(converter); string json = JsonConvert.SerializeObject(data, settings); return new JsonSerializeResult { Json = json, Bytes = converter.Bytes }; }
public JsonSerializeResult Serialize <T>(T data) { var converter = new ByteArrayConverter(eio); var settings = CreateOptions(); settings.Converters.Add(converter); string json = JsonConvert.SerializeObject(data, settings); return(new JsonSerializeResult { Json = json, Bytes = converter.Bytes }); }