![]() |
|
#1
|
|||
|
|||
Array of objects of a managed classHi,
I have created a managed class and I want to make an array of this class, but I need it to be of not fixed length. I can declare the array like this: CPP / C++ / C Code:
Is there a way to declare an array of not fixed length, and if there is how do I do it? Thank you, Gligor |
|
#2
|
|||
|
|||
Re: Array of objects of a managed classnot in .net
Try ArrayList or something else from System.Collections namespace |
|
#3
|
|||
|
|||
Re: Array of objects of a managed classOr I would suggest for your scenario creating a strongly typed collection, which you have to make yourself in 1.1 (derive from CollectionBase), in 2.0 upwards use generics (Collection<T> - where T is the object type)
|
Recent GIDBlog
US Elections and the ?Voter?s Responsibility? by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Message Class | TransformedBG | C++ Forum | 5 | 29-Nov-2006 22:28 |
| a tester class and then some. | postage | Java Forum | 1 | 06-May-2006 16:48 |
| Need help deleting the last element in the array | headphone69 | C++ Forum | 2 | 15-Mar-2006 20:31 |
| template comiling problems - need expert debugger! | crq | C++ Forum | 1 | 01-Feb-2005 22:26 |
| Error C2146: syntax error : missing ',' before identifier 'C4' | mattchew008 | C++ Forum | 2 | 19-Dec-2004 07:06 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The