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

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -