Windows Phone 7上的HashSet <t> </t>

时间:2011-01-22 21:40:48

标签: c# silverlight windows-phone-7

Windows Phone 7上是否没有System.Collections.Generic.HashSet?

3 个答案:

答案 0 :(得分:16)

Windows Phone 7 .NET库与Silverlight 3.0(没有HashSet)中提供的库相当。您可以使用HashSet构建类似Dictionary的内容。例如,请参阅此MSDN论坛帖子:http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/e1dd3571-dfb8-4abe-b63a-62106d6a4965/

答案 1 :(得分:3)

SL4支持

HashSet(Of T) Class

但是在Widows Phone 7上,与Silverlight 3.0 API兼容,不支持SL 4。所以答案是否定的,你还不能使用HashSet for Windows Phone 7。

答案 2 :(得分:3)

Windows Phone不支持。 Windows Phone版本的Silverlight包含常规Silverlight的一些部分,但不是全部。

请参阅here