HashSet with Index Access

后端 未结 5 1388
轻奢々
轻奢々 2021-01-07 11:58

I would need a data structure that

  1. Allows me to add/item to it
  2. Do not allow duplication
  3. access the collection via index

I am t

5条回答
  •  终归单人心
    2021-01-07 12:29

    I think you need to develope your own List extension class. List can match your point 1 and 3, but to match point 2 you need to override Add methods.

提交回复
热议问题