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

C#

 
Generalprinting a comment report Pin
Andrew Torrance28-Oct-03 22:13
Andrew Torrance28-Oct-03 22:13 
GeneralRe: printing a comment report Pin
Heath Stewart29-Oct-03 11:23
protectorHeath Stewart29-Oct-03 11:23 
GeneralFloating ToolBar & Flickering Pin
Itanium28-Oct-03 21:43
Itanium28-Oct-03 21:43 
GeneralConcatenating 2 string arrays Pin
Matthieu.C28-Oct-03 21:29
Matthieu.C28-Oct-03 21:29 
GeneralRe: Concatenating 2 string arrays Pin
Itanium28-Oct-03 22:13
Itanium28-Oct-03 22:13 
GeneralRe: Concatenating 2 string arrays Pin
Matthieu.C28-Oct-03 22:29
Matthieu.C28-Oct-03 22:29 
GeneralRe: Concatenating 2 string arrays Pin
Donald_a28-Oct-03 23:44
Donald_a28-Oct-03 23:44 
GeneralRe: Concatenating 2 string arrays Pin
Jeremy Kimball29-Oct-03 1:48
Jeremy Kimball29-Oct-03 1:48 
You've got two options here:

1. Create a new array of length= array1.length + array2.length, then use two consecutive Array.CopyTo() calls, one using zero as the index to start at, one using array1.length.

2. If you don't mind the minor performance hit from using a ICollection based object, take a look at System.Collections.ArrayList:
using System.Collections;

// stuff omitted
ArrayList array1 = new ArrayList();
array1.Add("hello");
array1.Add("world");
ArrayList array2 = new ArrayList();
array2.Add("Bonjour");
array2.Add("le monde");
array1.AddRange( array2 );


now array1 should contain (boxed as objects):
"hello",
"world",
"Bonjour",
"le monde"


Hope that helps...

Jeremy Kimball
GeneralRe: Concatenating 2 string arrays Pin
Jeff Varszegi30-Oct-03 14:46
professionalJeff Varszegi30-Oct-03 14:46 
QuestionHow to take input in a password file? Pin
Anonymous28-Oct-03 20:07
Anonymous28-Oct-03 20:07 
AnswerRe: How to take input in a password field? Pin
Anonymous28-Oct-03 20:09
Anonymous28-Oct-03 20:09 
AnswerRe: How to take input in a password file? Pin
Heath Stewart29-Oct-03 11:27
protectorHeath Stewart29-Oct-03 11:27 
QuestionHow to thread? Pin
Anonymous28-Oct-03 18:39
Anonymous28-Oct-03 18:39 
AnswerRe: How to thread? Pin
Jeremy Kimball29-Oct-03 2:00
Jeremy Kimball29-Oct-03 2:00 
GeneralPosting back datagrid web control values Pin
Ismael Chivite28-Oct-03 17:04
Ismael Chivite28-Oct-03 17:04 
GeneralStringBuilder, byte[], lpstr, interop Pin
Tym!28-Oct-03 14:18
Tym!28-Oct-03 14:18 
GeneralRe: StringBuilder, byte[], lpstr, interop Pin
Jeremy Kimball29-Oct-03 1:40
Jeremy Kimball29-Oct-03 1:40 
GeneralRe: StringBuilder, byte[], lpstr, interop Pin
Tym!29-Oct-03 6:28
Tym!29-Oct-03 6:28 
GeneralRe: StringBuilder, byte[], lpstr, interop Pin
Tym!29-Oct-03 14:12
Tym!29-Oct-03 14:12 
GeneralRenaming a File Pin
deanoA28-Oct-03 14:09
deanoA28-Oct-03 14:09 
GeneralRe: Renaming a File Pin
Nick Parker28-Oct-03 14:21
protectorNick Parker28-Oct-03 14:21 
GeneralSuper Lame QOTD (Stripping Paths) Pin
MKlucher28-Oct-03 11:56
MKlucher28-Oct-03 11:56 
GeneralRe: Super Lame QOTD (Stripping Paths) Pin
Kentamanos28-Oct-03 12:25
Kentamanos28-Oct-03 12:25 
GeneralRe: Super Lame QOTD (Stripping Paths) Pin
MKlucher28-Oct-03 12:40
MKlucher28-Oct-03 12:40 
GeneralRe: Super Lame QOTD (Stripping Paths) Pin
Kentamanos28-Oct-03 12:43
Kentamanos28-Oct-03 12:43 

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.