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 use distinct in linq query?



How to use distinct in linq query?..

Answer / Priyanka Tiwari

To use distinct in a LINQ query, you can use the Distinct() method. This method removes any duplicate elements from the sequence before returning it. For example: var uniqueNumbers = numbers.Distinct();

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More LINQ Language-Integrated Query Interview Questions

What is data context class? Explain its role?

1 Answers  


Why do we use “contains"?

1 Answers  


Explain how linq with databases can be used?

1 Answers  


What does linq?

1 Answers  


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

1 Answers  


List out the data context functions. Where do we use “submitchanges()"?

1 Answers  


LINQ query is executed in which statement?

1 Answers  


When linq query is executed?

1 Answers  


What is anonymous method?

1 Answers  


What is the difference between entity framework and linq?

1 Answers  


Write LINQ query to find 2nd highest salary?

1 Answers  


What is difference between linq and sql query?

1 Answers  


Categories