You have executed the Where query extension method on your collection, and it returned IEnumerable of Car, but you want to assign this to a variable whose type is List Of Car. How can you convert the IEnumerable of Car to List Of Car?

 Posted by Rajkatie on 8/7/2012 | Category: ADO.NET Interview questions | Views: 1786 | Points: 40
Select from following answers:
  1. Use CType (C# cast).
  2. Use ToList().
  3. It can't be done.
  4. All Above

Show Correct Answer

Source: | | Alert Moderator 

Comments or Responses

Login to post response