HOW to fetch Unique data from LINQ using the Distinct Method?
HOW to fetch Unique data from LINQ using the Distinct Method?
402
24-Sep-2021
Ravi Vishwakarma
28-Sep-2021In LINQ, the Distinct method or operator is used to get only distinct elements from the collection or list. In another word these distinct method doesn’t accept the duplicate elements, means remove the duplicate value make its single value.
Syntax
Example
Output
after using orderby() method result in ascending order