// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#using <mscorlib.dll>

using namespace System;
using namespace System::Collections::Generic;

int main()
{
    List<String^>^ al = gcnew List<String^>();
    al->Add("A");
    al->Add("BB");
    al->Add("CCC");
    for(int i = 0; i < al->Count; i++)
    {
        Console::WriteLine(al[i]);
    }
    array<String^>^ a = al->ToArray();
    for(int i = 0; i < a->Length; i++)
    {
        Console::WriteLine(a[i]);
    }
    return 0;
}
