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

php - Cakephp Not validating data in Form -

html5 - How to use WYSIWYG editor in Phpfox? -

php - get the current k2 item ID -