Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# list with only unique items

If your requirements are to have no duplicates, you should be using a HashSet.
HashSet.Add will return false when the item already exists (if that even matters to you).
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #unique #items
ADD COMMENT
Topic
Name
3+4 =