c# - Why use a List over a HashSet? -
may obvious question, i've seen plenty of reasons why use hashset on list/array. i've heard has o(1) removing , searching data.
i've never heard why use list on hashset.
so why vice-versa?
- a list allows duplicates,
hashset
not - list ordered it's index,
hashset
has no implicit order - performance overrated, choose right tool job
Comments
Post a Comment