Collection datatype question.

  • Thread starter Thread starter Dmitrii PapaGerogio
  • Start date Start date
D

Dmitrii PapaGerogio

Right now I am using Vector to store two values...something in the lines
of...

Vector v = new Vector();
v.Add("bob", 21);
v.Add("dan", 26);
v.Add("sally", 24);

but now using Vector which will only hold 2 values is not enough. Is
there something in the MS collections package that can store more than 2
values? Like...

v.Add("bob", 21, "1211 SouthLane Dr.", "active");

or do I need to create my own Collection class?
 
Hi Dmitrii,

Why don't you create a class that stores your data and then just use
ArrayList to store those classes.
 
Hello,
where did you find a Vector in C# - could you give me a name of namespace?
i was looking for something similar to java.util.Vector in C#... but i
haven't found.

Adam
 
Kail said:
Hello,
where did you find a Vector in C# - could you give me a name of namespace?
i was looking for something similar to java.util.Vector in C#... but i
haven't found.

Adam
it's in the Collection namespace
 
Back
Top