【问题标题】:Is there a Collection that works like a Dictionary without the values?有没有像字典一样工作但没有值的集合?
【发布时间】:2010-09-25 03:40:35
【问题描述】:

我需要一个像字典/哈希表一样工作的集合,从某种意义上说,它在任何时候都只会包含给定对象的 1 个实例。一个通用类会更好,但我会尽我所能。此集合是否存在于框架中的某个位置?

【问题讨论】:

    标签: .net data-structures collections dictionary


    【解决方案1】:

    HashSet<T> 来自System.Core.dll

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-03-18
      • 1970-01-01
      • 1970-01-01
      • 2020-03-24
      • 1970-01-01
      • 1970-01-01
      • 2023-01-01
      相关资源
      最近更新 更多