J
Jim Heavey
Do I have to know the exact number of occurences of an array object when I
declared it, or can I add just declare the object and do not have to
declare the length?
For instance...
TableRow[] myTableRows;
Table row1 = new TableRow();
myTableRows[0] = row1;
Table row2 = new TableRow();
myTableRows[1] = row2;
I think I had to know the size of my array - at least in Java I did, so I
guess it is the same with C#?
If I do not know the size exactly, is it best for me to choose a number
that I know it will not exceed (small number like 10) or should I just use
a hashtable to store all of my row in? Or is there a better object ot use?
declared it, or can I add just declare the object and do not have to
declare the length?
For instance...
TableRow[] myTableRows;
Table row1 = new TableRow();
myTableRows[0] = row1;
Table row2 = new TableRow();
myTableRows[1] = row2;
I think I had to know the size of my array - at least in Java I did, so I
guess it is the same with C#?
If I do not know the size exactly, is it best for me to choose a number
that I know it will not exceed (small number like 10) or should I just use
a hashtable to store all of my row in? Or is there a better object ot use?