distinct values from a list using LINQ

What is LINQ? Why LINQ?

  1. LINQ is stands for Language Integrated Query.
  2. LINQ is a Microsoft .NET Framework component and use for data querying.
  3. LINQ was released in Microsoft .NET Framework 3.5 on November 19, 2007.
  4. LINQ also defines a set of method names that is called standard query operators.
  5. LINQ a library for collection and iterator manipulation that makes extensive use of higher-order functions as arguments using  System.Linq.
  6. LINQ allows us to write queries directly in our database and these queries can be on relational databases, XML documents, objects, arrays and third-party data sources.
  7. LINQ also defines a new LINQ provider model that can take an expression tree and use it to run native queries against a data source outside of the CLR i.e. LINQ to SQL, LINQ to XML etc.
  8. LINQ is query syntax, not a language or an O/RM. You can build an O/RM on top of the syntax provided by LINQ.
  9. LINQ is kinds of universal query language.

We can use LINQ queries in two ways,
1.      Query Syntax
2.      Methods Syntax
Most of the times we are using a combination of both.

LINQ makes our code cleaner, readable, reusable, maintainable and IntelliSense Support.

Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..

My Tech Blog - https://www.code-sample.com/
My Books - Book 1 and Book 2

What is LINQ? Why LINQ? What is LINQ? Why LINQ? Reviewed by Anil Singh on 1:15 AM Rating: (5)
www.code-sample.com/. Powered by Blogger.