// 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;

int main()
{
    array<int>^ a = { 1, 2, 3, 4, 5 };
    for(int i = 0; i < a->Length; i++) Console::WriteLine(a[i]);
    array<int>^ b = gcnew array<int>(5);
    for(int i = 0; i < b->Length; i++) b[i] = i+1;
    for(int i = 0; i < b->Length; i++) Console::WriteLine(b[i]);
    return 0;
}
