I have a class Items with properties (Id, Name, DrugCode1, DrugCode2).
The List of Items is populated with duplicated items.
For eg.:
------------------------------------------
Id        Name     DrugCode1  DrugCode2
------------------------------------------
1         Item1       2         3
2         Item2       3         2
3         Item3       4         3
1         Item1       3         2
3         Item3       3         4
If the DurgCode1 and DrugCode2 are reversed then we consider the items to be duplicates
eg:
1         Item1       2         3
1         Item1       3         2
The above 2 itmes are considered duplicate since the DrugCode1 and DrugCode2 are reversed. We just need to fetch only one item.
How to remove the duplicates in the list using linq?
 
     
     
     
     
    