Return to Snippet

Revision: 49757
at July 29, 2011 08:15 by BrentS


Initial Code
using System.Collections.Generic;

Dictionary<int, bool> MyDictionary = new Dictionary<int, bool>();

MyDictionary.Add(1, true);

foreach (KeyValuePair<int, bool> dictitem in MyDictionary)
{
   if (dictitem.Key == 1)
}

Initial URL


Initial Description
Simple example of a Key Value Pair using System.Collections.Generic.

Initial Title
KeyValuePair System.Collections.Generic

Initial Tags


Initial Language
C#