作业帮 > 综合 > 作业

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

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/09/13 11:23:37
Dictionary booksUrl = new Dictionary(); 请问如何遍历
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;
}
}