Office Document APIs for .NET
ITIL Career Advice
PMP Career Advice
Android Intel XDK
Welcome Guest !
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?
on 8/7/2012 | Category:
ADO.NET Interview questions
| Views: 1872 |
Select from following answers:
Use CType (C# cast).
It can't be done.
The ToList() query extension method instantiates List Of Car and populates it with the Car objects.
You can't use CType (C# cast) because IEnumerable of Car is not List Of Car.
Show Correct Answer
MeasureUp.com | |
< Previous :
Given the following LINQ query: from c in cars jo ...
Next > :
You want to page through an element sequence, disp ...
Comments or Responses
Login to post response
More Interview Questions by Rajkatie
You want to page through an element sequence, displaying ten elements ...
To which of the following types can you add an extension method?
You are going to execute a Select command to SQL Server that returns s ...
Which payload formats can be specified if you are making an AJAX call ...
You are writing a WCF data service that will be included in a large pr ...
You want to configure WCF data service to allow only a single row look ...
You retrieved a row of data into an entity object by using a LINQ to S ...
Which class should you use to manage multiple tables and relationships ...
Latest Interview Questions
Considering SELECT statement, in which order the query clauses are log ...
How do you copy the COM component to the server and register ?
It is not a good idea to add ASPNET user to the Administrators group, ...
How is the ASP.NET worker process impersonated ?
What will happen when you access the Global.asax file from a browser?
When you access the Web.config file from a browser, What will happen ?
What will happen to an application’s Web.config file when you make cha ...