// TestCLR.cpp : main project file. using namespace System; using namespace System::Collections::Generic; int main(array ^args) { const int N = 10000000; List ^g = gcnew List(); g->Capacity = N; DateTime t0 = DateTime::Now; for (int i = 0; i < N; i++) g->Add(Guid::NewGuid()); TimeSpan ts = DateTime::Now - t0; Console::WriteLine("elapsed time=" + ts.ToString() + " Count="+g->Count.ToString()); return 0; }