我对这个问题很困惑。
Which of the following advantages does System.Collections.IDictionaryEnumerator provide over System.Collections.IEnumerator?
a: It adds properties for direct access to both the Key and the Value
b: It is optimized to handle the structure of a Dictionary.
c: It provides properties to determine if the Dictionary is enumerated in Key or Value order
d: It provides reverse lookup methods to distinguish a Key from a specific Value
最佳答案
一个:是的
b: 枚举器不处理集合,它只是枚举它们
c: 字典未排序(内部排序但不在键上)
d: 绝对不会
重要的一点是它用于非通用词典。
关于c# - System.Collections.IDictionaryEnumerator 优于 System.Collections.IEnumerator 的优点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8558569/