Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to return list from linq query?



How to return list from linq query?..

Answer / Deepa Phakaliyal

To return a list from a LINQ query, you can use the ToList() method. For example: `var result = dataSource.Where(x => x.SomeProperty == someValue).ToList();`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More LINQ Language-Integrated Query Interview Questions

How to use GroupBy in LINQ?

1 Answers  


Why cant datareader be returned from a web services method?

1 Answers  


How to write LINQ query for Inner Join with and condition?

1 Answers  


What is the difference between first () and firstordefault () select methods in linq?

1 Answers  


How var type is different from anonymous type?

1 Answers  


What is the use of System.Data.DLinq.dll?

1 Answers  


Explain what is linq? Why is it required?

1 Answers  


How to assign a computed value to the same array back?

1 Answers   B-Ways TecnoSoft,


Is linq faster than sql?

1 Answers  


What are lazy/deferred loading and eager loading?

1 Answers  


When to use Single, SingleOrDefault, First and FirstOrDefault?

1 Answers  


What do you understand by datacontext class? How is it related to linq?

1 Answers  


Categories