Click here to Skip to main content
15,889,354 members
Home / Discussions / C#
   

C#

 
GeneralRe: Selfish LOCK! Pin
Heath Stewart29-Apr-04 3:32
protectorHeath Stewart29-Apr-04 3:32 
GeneralRe: Selfish LOCK! Pin
scadaguy28-Apr-04 15:37
scadaguy28-Apr-04 15:37 
Generalcrystal report export to excel Pin
econnor28-Apr-04 11:58
econnor28-Apr-04 11:58 
GeneralRe: crystal report export to excel Pin
Heath Stewart28-Apr-04 12:47
protectorHeath Stewart28-Apr-04 12:47 
GeneralAbout ArrayList. Help! Pin
wk_vigorous28-Apr-04 11:52
wk_vigorous28-Apr-04 11:52 
GeneralRe: About ArrayList. Help! Pin
Christian Graus28-Apr-04 12:00
protectorChristian Graus28-Apr-04 12:00 
GeneralRe: About ArrayList. Help! Pin
Colin Angus Mackay28-Apr-04 12:29
Colin Angus Mackay28-Apr-04 12:29 
GeneralRe: About ArrayList. Help! Pin
Jeff Varszegi28-Apr-04 12:44
professionalJeff Varszegi28-Apr-04 12:44 
Let me add my valuable two cents' worth to the wealth of opinion on your vital question. Smile | :)

So you want an array of ArrayLists, not an ArrayList of ArrayLists, yes? Here you go:

ArrayList[] arrayLists = new ArrayList[4];  // or whatever

for(int x = (arrayLists.Length - 1); x >= 0; x--) {
    arrayLists[x] = new ArrayList();
}


Your choice is not that inappropriate if you definitely know how many shrinkable/growable arrays you'll be needing, need to access them based on index, don't want to write code to manage the size of the individual arrays, and don't want the performance hit of using an ArrayList for the first index access. Of course, if you really want speedy performance, you'll eschew the use of ArrayLists altogether and manage your own arrays completely.

Regards,

Jeff Varszegi

EEEP!
GeneralRe: About ArrayList. Help! Pin
wk_vigorous29-Apr-04 0:43
wk_vigorous29-Apr-04 0:43 
GeneralRe: About ArrayList. Help! Pin
Jeff Varszegi29-Apr-04 2:56
professionalJeff Varszegi29-Apr-04 2:56 
Generaladding a dataset to a database Pin
(Steven Hicks)n+128-Apr-04 11:16
(Steven Hicks)n+128-Apr-04 11:16 
GeneralRe: adding a dataset to a database Pin
Heath Stewart28-Apr-04 11:26
protectorHeath Stewart28-Apr-04 11:26 
GeneralFree Form Controls Pin
Jon G28-Apr-04 9:58
Jon G28-Apr-04 9:58 
GeneralRe: Free Form Controls Pin
Heath Stewart28-Apr-04 10:01
protectorHeath Stewart28-Apr-04 10:01 
GeneralRe: Free Form Controls Pin
Jon G28-Apr-04 10:08
Jon G28-Apr-04 10:08 
GeneralRe: Free Form Controls Pin
Jon G28-Apr-04 10:14
Jon G28-Apr-04 10:14 
GeneralRe: Free Form Controls Pin
Heath Stewart28-Apr-04 10:15
protectorHeath Stewart28-Apr-04 10:15 
GeneralRe: Free Form Controls Pin
..Hubert..28-Apr-04 22:17
..Hubert..28-Apr-04 22:17 
GeneralRE: Web Service Startup Pin
mjmcinto28-Apr-04 9:12
mjmcinto28-Apr-04 9:12 
GeneralRe: RE: Web Service Startup Pin
Jesse Squire28-Apr-04 9:46
Jesse Squire28-Apr-04 9:46 
GeneralRe: RE: Web Service Startup Pin
mjmcinto28-Apr-04 10:39
mjmcinto28-Apr-04 10:39 
GeneralRe: RE: Web Service Startup Pin
Heath Stewart28-Apr-04 11:19
protectorHeath Stewart28-Apr-04 11:19 
GeneralRe: RE: Web Service Startup Pin
je_gonzalez28-Apr-04 11:03
je_gonzalez28-Apr-04 11:03 
GeneralRe: RE: Web Service Startup Pin
mjmcinto28-Apr-04 11:25
mjmcinto28-Apr-04 11:25 
GeneralRe: RE: Web Service Startup Pin
mjmcinto29-Apr-04 4:00
mjmcinto29-Apr-04 4:00 

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.