Concatenating two arrays of byte together

  • Thread starter Thread starter Richard L Rosenheim
  • Start date Start date
R

Richard L Rosenheim

Is there any built-in method or mechanism for concatenating two arrays of
byte together?

I haven't come across anything to do this, and was just checking before I
implement some code.

Richard Rosenheim
 
After reading your reply, I doubled checked the documentation. I
misunderstood the documentation. I was thinking it copied the array
specified starting at the index specified -- not that it copied the array to
the index specified.

Thanks for the reply,

Richard
 
Richard,
There is both Array.CopyTo & Array.Copy. It sounds like you may have been
looking at the one thinking of the other...

Array.CopyTo will copy the entire current array to another array at the
specified index. CopyTo is an instance method.

Array.Copy will copy all or part of one array to part of another array .
Copy is a Shared method.


Hope this helps
Jay
 
Jay, I always read your replies and find your answers to be excellent. From
your answer to this question, I figured out what is meant by "Instance
method" and "Shared Method". Thanks for all the insight you've given me by
your answers to many questions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top