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 are the linq standard query operators in linq?

1 Answers  


What is linq in xamarin?

1 Answers  


What is the advantage of linq over sql?

1 Answers  


What are lazy/deferred loading and eager loading?

1 Answers  


What is LINQPad?

1 Answers  


How is linq useful than stored procedures?

1 Answers  


What is difference between XElement.Load() and XDocument.Load()?

1 Answers  


What is the difference between N-layer and N-tier architecture?

1 Answers  


Define what is Where clause and Let clause?

1 Answers  


Write the basic syntax of a LINQ query in Visual Basic as well as in C#.

1 Answers  


LINQ query is executed in which statement?

1 Answers  


Differentiate between linq and stored procedure?

1 Answers  


Categories