1
Answer

Interview qustion

Manoop Paul

Manoop Paul

12y
2.5k
1
4) Which of the following does using Initializer Syntax with a collection as shown below require?
CollectionClass<int> numbers = new CollectionClass <int>{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
    a) Collection Class must implement System.Collections.Generic.Icollection
    b)Collection Class must implement System.Collections.Generic.IList<T>
    c) Each of the Items in the Initializer List will be passed to the Add<T>(T item) method
Answers (1)