System.Collections — which of the following is NOT an interface defined in this namespace?

C# Programming Collection Classes Difficulty: Easy
Choose an option
  • A
    IComparer
  • B
    IEnumerable
  • C
    IEnumerator
  • D
    IDictionaryComparer
  • E
    IDictionaryEnumerator

Answer

Correct Answer: IDictionaryComparer

Explanation

Introduction / Context:Knowing the standard interfaces in System.Collections is essential for iteration and dictionary-like access patterns.

Concept / Approach:Common interfaces include IEnumerable (sequence), IEnumerator (iterator), IComparer (ordering), IDictionaryEnumerator (dictionary enumeration). There is no standard IDictionaryComparer interface in System.Collections.

Why Other Options Are Wrong:IComparer, IEnumerable, IEnumerator, and IDictionaryEnumerator are valid and widely used in the non-generic collections.

Final Answer:IDictionaryComparer

Discussion & Comments
No comments yet. Be the first to comment!
Join Discussion