[转载]C#中字典集合的两种遍历

Dictionary<string, string> dictionary = new Dictionary<string,string>();

foreach (string dic in dictionary.Keys)
{
//Key: dic
//Value: dictionary[dic]
}
foreach (KeyValuePair<string, string> dic in dictionary
{
//Key: dic.Key
//Value: dic.Value
}

http://blog.csdn.net/mhtshhp/article/details/5208665

上一篇:CocoaPods安装使用及上传


下一篇:A-frame_02