public T Deserialize <T>(byte[] content) { using (var stream = new MemoryStream(content)) using (var reader = new StreamReader(stream, _encodingService.GetEncoding())) return((T)JsonSerializer.Create().Deserialize(reader, typeof(T))); }
public T Deserialize <T>(byte[] content) { using (var stream = new MemoryStream(content)) using (var reader = new StreamReader(stream, _encodingService.GetEncoding())) return((T)JsonSerializer.Create().Deserialize(reader, typeof(T))); }