#include "stdafx.h"
#using
using namespace System;
using namespace System::Collections::Generic;
void main()
{
Dictionary^ dict = gcnew Dictionary();
dict->Add(1, "One");
dict->Add(6, "Six");
dict->Add(5, "Five");
dict->Add(3, "3");
dict[3] = "Three";
dict[7] = "Seven";
Dictionary::KeyCollection::Enumerator ^key = dict->Keys->GetEnumerator();
Dictionary::ValueCollection::Enumerator ^value = dict->Values->GetEnumerator();
while ( key->MoveNext() && value->MoveNext()){
Console::WriteLine("Key = [{0}]\tValue = [{1}]", key->Current, value->Current);
}
}