Dictionary<string, string> dic = new Dictionary<string, string>();
dic.add(key,value);
for(int i = 0; i<dic.count ; i ++)
{
KeyValuePair<string, string> kv = dic.ElementAt(inner);
string key = ky.key;
string value = ky.value;
//或者
var item = dic.ElementAt(inner);
key = item.Key;
value = item.Value;
}