I have a collection which has items like InstId, PulseID and SheetID on top of other items. I would like to check if these values (as a combination) in the collection are distinct if they are not I would like to output them a simple trace message "Not Unique: InstId, PulseID and SheetID.
For e.g.,
InstId | PulseID | SheetID |
-----------------------------------------
1 | 1 | 99 |
1 | 1 | 98 |
1 | 1 | 97 |
2 | 1 | 99 |
2 | 1 | 98 |
3 | 1 | 97 |
2 | 1 | 99 |
2 | 1 | 95 |
3 | 1 | 93 |
I would like a trace message which will output the duplicatite like
InstId:2, PulseID: 1, SheetID: 99
I was looking through this link and it seems to make sense but how do i get the ones which are not unique. C# Linq Group By on multiple columns