What is the difference between HashSet and List?
Unlike a List<> … A HashSet is a List with no duplicate members. Because a HashSet is constrained to contain only unique entries, the internal structure is optimised for searching (compared with a list) – it is considerably faster Adding to a HashSet returns a boolean – false if addition fails due to already existing … Read more