Following are the collections in C#:

Skill/Topic: Advanced
A) structs
B) enum
C) dictionaries
Explanation: Ans. b & c. a isn’t a collection .

Editorial / Best Answer

LordAlex  

  • Member Since Nov-2011 | Nov 5th, 2011


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.

Showing Answers 1 - 4 of 4 Answers

LordAlex

  • Nov 5th, 2011
 

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.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions