Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
jodydonetti committed May 19, 2024
1 parent ab865a2 commit 25d6d6a
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,14 @@ static FusionCacheServiceStackJsonSerializer()
public byte[] Serialize<T>(T? obj)
{
using var stream = new MemoryStream();

JsonSerializer.SerializeToStream<T?>(obj, stream);

return stream.ToArray();
}

/// <inheritdoc />
public T? Deserialize<T>(byte[] data)
{
using var stream = new MemoryStream(data);

return JsonSerializer.DeserializeFromStream<T?>(stream);
}

Expand Down

0 comments on commit 25d6d6a

Please sign in to comment.