Sign in to follow this  

[.net] C# and std vectors

This topic is 4091 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Equivalents: The .Net 2.0 equivalent is "List<T>", .Net 1.x is "ArrayList".

If you have Visual Studio, you should check out the 'Object Browser' (CTRL+ALT+J) and browse the namespaces for a while to become familiar with what's available.

If you actually need a real std::vector you would probably find it easier to use C++/CLI.

Share this post


Link to post
Share on other sites
The System.Collections namespace (and is it System.Collections.Generic in 2.0?) contains all the 'usual suspects' when it comes to dynamic data structures. The most direct comparator to std::vector, as mentioned already, is ArrayList or List<Whatever>.

Share this post


Link to post
Share on other sites

This topic is 4091 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this