<pre id=\"best-answer-content\" class=\"reply-text mb10\">Dictionarystring, string test = new Dictionarystring, string();
test.Add(\"userName\", \"jiou\");
test.Add(\"u2\", \"xx\");
foreach (var dic in test)
{
Console.Write(\"key: {0}\\nvalue: {1}\\n\", dic.Key, dic.Value);
}
Console.ReadKey(); |