Mega Code Archive

 
Categories / Visual C++ .NET / Collections
 

Add string to StringCollection

#include "stdafx.h" #using <system.dll> using namespace System; using namespace System::Collections; using namespace System::Collections::Specialized; void main() {     StringCollection ^strcol = gcnew StringCollection();     strcol->Add("The first String"); }