Dictionary booksUrl = new Dictionary(); 请问如何遍历

问题描述:

Dictionary booksUrl = new Dictionary(); 请问如何遍历
1个回答 分类:综合 2014-12-15

问题解答:

我来补答
Dictionary booksUrl = new Dictionary();
foreach (KeyValuePair ItemKey in booksUrl)
{
string booksUrlKey = ItemKey.Key;
Dictionary booksUrlValue = ItemKey.Value;
foreach (KeyValuePair ChildKey in booksUrlValue)
{
string tempDictionaryKey = ChildKey.Key;
string tempDictionaryValue = ChildKey.Value;
}
}
 
 
展开全文阅读
剩余:2000