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

Why linq is used in c#?

1 Answers  


Can we use linq without entity framework?

1 Answers  


What is the advantage of linq in c#?

1 Answers  


What is using system linq in c#?

1 Answers  


Explain how you can differentiate between Conversion Operator “ToDictionary” and “IEnumerable” of LINQ?

1 Answers  


Why do we use “contains"?

1 Answers  


Why can not datareader by returned from a web services method?

1 Answers  


What is the use of firstordefault in linq?

1 Answers  


How to convert linq query to list?

1 Answers  


why SELECT clause comes after FROM clause in LINQ?

1 Answers  


what is the difference between N-layer and N-tier architecture in LINQ?

1 Answers  


What is system linq?

1 Answers  


Categories