SyntaxFix
Write A Post
Hire A Developer
Questions
Although internally it creates a new array and copies values into it, you can use Array.Resize<byte>() for more readable code. Also you might want to consider checking the MemoryStream class depending on what you're trying to achieve.
Array.Resize<byte>()
MemoryStream