Vectors in VB.NET?

  • Thread starter Thread starter Guest
  • Start date Start date
Is it possible to implement vectors in VB.net as done in C++? If not, how
can I declare an object that is a collection of integers similar to a
vector?
 
Is it possible to implement vectors in VB.net as done in C++? If not, how
can I declare an object that is a collection of integers similar to a
vector?

Hmmm, System.Collections.Generic.List is probably the closest to the
STL Vector class... Assuming your are using VB2005. If you are using
a previous version, then look at the System.Collections.ArrayList
class - though, it won't be as efficient because it takes type object
and so you will have boxing overhead with value types such as integer.
 
Back
Top