Manoop Paul

Manoop Paul

  • NA
  • 1
  • 2.5k

Interview qustion

Mar 16 2012 5:58 AM
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)