You are creating a method which returns a type that is compatible with the Foreach statement. Which criteria should the method meet?

  1. The method must return a type of either IEnumerator or Ienumerable

  2. The method must return a type of IComparable

  3. The method must explicitly contain a collection

  4. A and B


Correct Option: A

Find more quizzes: