usetheforce2
01-09-2002, 06:52 PM
hey all,
i know, i know, this is a vb site but, well, you know!
i'm new to c# and i was wondering if there's a way to simulate redimensioning object arrays in the same way vb allows: I realize that i can set a predefined amout of elements for the object array
Object myObject[10];
but i like to be able to increase the array:
ie:
[Visual Basic]
dim myObject() as Some_Kind_of_Object
redim preserver myObject(elements + 1)
or will i have to use a collection of objects in C# rather than redimensioning?
thanks, hopefully thats not to confusing.
Regan
i know, i know, this is a vb site but, well, you know!
i'm new to c# and i was wondering if there's a way to simulate redimensioning object arrays in the same way vb allows: I realize that i can set a predefined amout of elements for the object array
Object myObject[10];
but i like to be able to increase the array:
ie:
[Visual Basic]
dim myObject() as Some_Kind_of_Object
redim preserver myObject(elements + 1)
or will i have to use a collection of objects in C# rather than redimensioning?
thanks, hopefully thats not to confusing.
Regan