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

来源:学生作业帮助网 编辑:六六作业网 时间:2024/10/03 16:32:22
DictionarybooksUrl=newDictionary();请问如何遍历DictionarybooksUrl=newDictionary();请问如何遍历DictionarybooksUrl

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