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

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 12:57:56

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

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;
}
}