|
-
May 19th, 2013, 07:30 PM
#1
Byte array union removes 0's???
I have two byte arrays and when I try to union them together the 0's are removed from the second byte array, how do I stop this from happening?
send = Header.Union(buffer).ToArray
'below is psudo code
Header=52,0
buffer=104,0,105,0
send = 52,0,104,105
Thanks,
Kris
-
May 19th, 2013, 07:43 PM
#2
Re: Byte array union removes 0's???
Union is a set operation, which means each value from the two operands will only appear once in the result. You want Concat rather than Union.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|