471,348 Members | 1,325 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

Is there any Vector in C#???

Hi group
I want to translate my program from C++ to C#, I used STL vector in my C++
program but I wonder what data type should I use when I want it to act like a
STL vector, but I don't want to use System.Array class!!!!!
Regards,

Nov 28 '05 #1
1 5108
Jefe,

If you are using .NET 1.1 and before, then you will have to use an
ArrayList class. Unfortunately, this doesn't give you type safety, and you
would have to create your own strongly typed collections as a result.

In .NET 2.0 and above, you would just use a List<T> to get the same
functionality as a vector.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jefe" <Je**@discussions.microsoft.com> wrote in message
news:0A**********************************@microsof t.com...
Hi group
I want to translate my program from C++ to C#, I used STL vector in my C++
program but I wonder what data type should I use when I want it to act
like a
STL vector, but I don't want to use System.Array class!!!!!
Regards,

Nov 28 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by {AGUT2}=IWIK= | last post: by
9 posts views Thread by luigi | last post: by
34 posts views Thread by Adam Hartshorne | last post: by
10 posts views Thread by Bob | last post: by
8 posts views Thread by Ross A. Finlayson | last post: by
16 posts views Thread by Martin Jørgensen | last post: by
23 posts views Thread by Sanjay Kumar | last post: by
6 posts views Thread by zl2k | last post: by
24 posts views Thread by toton | last post: by
1 post views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.