Using HashSet in C# 2.0, compatible with 3.5

后端 未结 6 1826
鱼传尺愫
鱼传尺愫 2020-11-30 10:17

I really want to use hashsets in my program. Using a dictionary feels ugly. I\'ll probably start using VS2008 with .Net 3.5 some day, so my ideal would be that even though

6条回答
  •  温柔的废话
    2020-11-30 10:32

    You can alias the Dictionary as Hashset with a using directive. Not really the same thing, but it might simplify things for you later.

提交回复
热议问题