Hashset <T> < - 它在我的电脑中无效

-2 c# hashset

我想在我的程序中使用HashSet.

但我不能宣布HashSet.

我的电脑安装了Microsoft .Net FrameWork 3.5.

而且我也声明了命名空间.(使用System.Collections.Generic)

但它没有用.

我如何解决这个问题?

我使用visual studio 2005(c#)和Windows 7.

谢谢.

cod*_*zen 6

"我使用的是visual studio 2005(c#)和Windows 7."

然后你不使用.Net 3.5.您需要在项目中专门引用System.Core程序集.