Click here to Skip to main content
15,891,375 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Beginner needs help. Pin
Luc Pattyn26-Aug-09 0:24
sitebuilderLuc Pattyn26-Aug-09 0:24 
AnswerRe: C# Beginner needs help. Pin
DaveyM6926-Aug-09 0:28
professionalDaveyM6926-Aug-09 0:28 
AnswerRe: C# Beginner needs help. Pin
LighthouseCall26-Aug-09 3:32
LighthouseCall26-Aug-09 3:32 
QuestionAppending byte array to a byte array Pin
deep725-Aug-09 23:21
deep725-Aug-09 23:21 
AnswerRe: Appending byte array to a byte array Pin
stancrm25-Aug-09 23:25
stancrm25-Aug-09 23:25 
GeneralRe: Appending byte array to a byte array Pin
deep727-Aug-09 2:12
deep727-Aug-09 2:12 
AnswerRe: Appending byte array to a byte array Pin
Hristo-Bojilov25-Aug-09 23:43
Hristo-Bojilov25-Aug-09 23:43 
AnswerRe: Appending byte array to a byte array Pin
DaveyM6926-Aug-09 0:01
professionalDaveyM6926-Aug-09 0:01 
Once an array's size is declared, it cannot be changed so you can't append directly to the end.

If you know the end size you need then you can declare a new byte array, and use Buffer.BlockCopy to copy from other arrays into the new one specifying offsets where needed etc.

If the end size is unknown, I'd use a List<byte> and use the Add method to copy a byte or AddRange to copy other byte arrays into it, then call ToArray on the List<byte> at the end, and you will then have an array of the correct size.

Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus)

AnswerRe: Appending byte array to a byte array [modified] Pin
DaveyM6926-Aug-09 2:32
professionalDaveyM6926-Aug-09 2:32 
GeneralRe: Appending byte array to a byte array Pin
deep727-Aug-09 2:15
deep727-Aug-09 2:15 
QuestionHow to navigate inside a folder from picture to picture Pin
kKamel25-Aug-09 23:15
kKamel25-Aug-09 23:15 
AnswerRe: How to navigate inside a folder from picture to picture Pin
OriginalGriff25-Aug-09 23:27
mveOriginalGriff25-Aug-09 23:27 
GeneralRe: How to navigate inside a folder from picture to picture Pin
kKamel25-Aug-09 23:42
kKamel25-Aug-09 23:42 
GeneralRe: How to navigate inside a folder from picture to picture Pin
OriginalGriff25-Aug-09 23:55
mveOriginalGriff25-Aug-09 23:55 
AnswerRe: How to navigate inside a folder from picture to picture Pin
stancrm25-Aug-09 23:34
stancrm25-Aug-09 23:34 
AnswerRe: How to navigate inside a folder from picture to picture Pin
Saksida Bojan25-Aug-09 23:42
Saksida Bojan25-Aug-09 23:42 
AnswerRe: How to navigate inside a folder from picture to picture Pin
kKamel25-Aug-09 23:48
kKamel25-Aug-09 23:48 
QuestionFace Detection unable to work for small faces in pictures Pin
ChangSiJie25-Aug-09 23:13
ChangSiJie25-Aug-09 23:13 
AnswerRe: Face Detection unable to work for small faces in pictures Pin
Keith Barrow26-Aug-09 0:09
professionalKeith Barrow26-Aug-09 0:09 
QuestionError in editing gridview Pin
myinstincts25-Aug-09 22:36
myinstincts25-Aug-09 22:36 
AnswerRe: Error in editing gridview Pin
ankit.zaveri25-Aug-09 23:42
ankit.zaveri25-Aug-09 23:42 
QuestionCreate a Custom NAT service Pin
spiritboy25-Aug-09 21:56
spiritboy25-Aug-09 21:56 
QuestionC# in ASP.Net Pin
darolia.manish25-Aug-09 21:31
darolia.manish25-Aug-09 21:31 
AnswerRe: C# in ASP.Net Pin
Mycroft Holmes25-Aug-09 22:00
professionalMycroft Holmes25-Aug-09 22:00 
AnswerRe: C# in ASP.Net Pin
Christian Graus25-Aug-09 22:03
protectorChristian Graus25-Aug-09 22:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.