Answered Questions

  • Following are the collections in C#:

    Skill/Topic: AdvancedA) structsB) enumC) dictionariesExplanation: Ans. b & c. a isn’t a collection .

    Star Read Best Answer

    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.

    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. Co...