Windows Phone 7上的HashSet
Windows Phone 7上没有System.Collections.Generic.HashSet吗?
Windows Phone 7 .NET库与Silverlight 3.0(没有HashSet
)中提供的库相当。 您可以使用Dictionary
构建类似HashSet
东西。 例如,请参阅此MSDN论坛post: http : //social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/e1dd3571-dfb8-4abe-b63a-62106d6a4965/
Windows Phone不支持它。 Silverlight的Windows Phone版本包含常规Silverlight的一些部分,但不是全部。
看到这里
SL4支持它
HashSet(Of T)类
但是在Widows Phone 7上,与Silverlight 3.0 API兼容,不支持SL 4。 所以答案是否定的,你还不能使用HashSet for Windows Phone 7。