I have a List like this,
COL1 COL2 COL3
---- ---- -----
AA AB Some text
AA AC Some text
AA AB Some text
AB AB Some text
AB AC Some text
AA AC Some text
I am looking for a fast and efficient logic in C# (perhaps in + LINQ) to remove duplicates in these two columns (COL1 , COL2 ) (Same like remove duplicates in Excel)
End result should be
AA AB Some text
AA AC Some text
AB AB Some text
AB AC Some text
Please advice
Use suggestion given by @Zerkms. For example, assuming your object type is MyRow: