Errors

Jul 29, 2010 at 10:14 PM
While building TestAPI as Windows Phone library, I get the errors for the following types

Folder - Text
public NormalizationForm? NormalizationForm { get; set; }

Folder ObjectComparision
HashSet<GraphNode> visitedNodes = new HashSet<GraphNode>();

Error 7 The type or namespace name 'HashSet' could not be found (are you missing a using directive or an assembly reference?) D:\AMS\Test\WP7\WindowsPhoneApplication1\WindowsPhoneApplication1\WindowsPhoneClassLibrary1\GraphNode.cs 141 13 WindowsPhoneClassLibrary1


How can I get these types in WP7 library?

Thanks
Shashi

Jul 30, 2010 at 2:57 AM

Shashi,

As discussed over email, I believe WP7 is using the .NET Compact Framework (NETCF), which does not have all types found in the desktop .NET framework. You have two options:

  1. roll out your own implementation of HashSet
  2. find a corresponding type in NETCF and modify the code to use that type

Ivo