Jose George

Jose George

  • NA
  • 2
  • 566

Remove duplicates from a list in c#

May 7 2022 12:30 PM

I have a category in my object how can I remove duplicates from each category if there is a duplicate existence based on each category in the list concept.

Please see my requirement below.

```
Category    Name
-------    ------- 
A           1
A           1 
A           2 
B           1 
B           1
B           3
```

Final Result should be like 

```
Category    Name
-------    ------- 
A           1
A           2 
B           1 
B           3
```
 


Answers (2)