-
Managed Vector
I am wondering how a "Managed vector" is declared.
I have worked much with:
std::vector<string> OneVector;
How is the same declared for a Managed type ?
What I am trying to do is to translate this to managed and importantly
use a push_back method for the managed type:
Code:
std::vector<string> OneVector;
std::string Stuff = "Hello";
OneVector.push_back(Stuff);
-
Code:
System.Collections.Generic.List<string> OneVector = new System.Collections.Generic.List<string>();
OneVector.Add("Hello");
-
Thank you... I did one change to it though:
Code:
System.Collections.Generic.List<String^> OneVector = new System.Collections.Generic.List<String^>();