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...


What is the basic syntax of a linq query in visual basic as well as in c#?



What is the basic syntax of a linq query in visual basic as well as in c#?..

Answer / Ilesh Kumar

The basic syntax for a LINQ query is: From element In collection Select result. In Visual Basic, it's written as: From element In collection Let alias = expression Select alias. In C#, it's written as: var query = from element in collection select expression;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More LINQ Language-Integrated Query Interview Questions

what is the difference between Skip() and SkipWhile() extension method?

1 Answers  


How can you find average of student marks from student tables (columns are studentid, marks)?

1 Answers  


Is linq faster than foreach?

1 Answers  


What is the difference between the Select clause and SelectMany() method in LINQ?

1 Answers  


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

1 Answers   B-Ways TecnoSoft,


Is linq part of entity framework?

1 Answers  


What are the three main components of linq or language integrated query?

1 Answers  


How to convert linq query to list?

1 Answers  


When to use Single, SingleOrDefault, First and FirstOrDefault?

1 Answers  


Why do we use “contains"? Method for strings type functions?

1 Answers  


Does entity framework use linq?

1 Answers  


Describe the architecture of linq?

1 Answers  


Categories