Editorial / Best Answer
LordAlex
All collections directly or indirectly should implement the ICollection interface or the ICollection(Of T) generic interface.
If you check System.Array you will see ICollection interface in there.
Correct answer is C, it doesn't matter that there are methods that can provide arrays of Names and Values. Because if you are reasoning like this, it means bject.ToString().ToCharArray() cause all classes are being collections.
Following are the collections in C#:
A) structs
B) enum
C) dictionaries
Explanation: Ans. b & c. a isn’t a collection .
Editorial / Best Answer
LordAlexProfile Answers by LordAlex Questions by LordAlex
All collections directly or indirectly should implement the ICollection interface or the ICollection(Of T) generic interface. If you check System.Array you will see ICollection interface in there. Correct answer is C, it doesn't matter that there are methods that can provide arrays of Names and Values. Because if you are reasoning like this, it means bject.ToString().ToCharArray() cause all classes are being collections.
Related Answered Questions
Related Open Questions