Remove dublicate in list

Hello, how I can delete dublicates in list?
I have: 1, 3,4,1,2,3,4,5,3,2,1
I need: 1,3,4,2,5

@RPA3
give a try on:
yourlistVar.Distinct().toList()

1 Like
ListOfString.Distinct().ToList

will return the unique values

2 Likes