How to use Dictionary<Control, string>?

I find Dictionary<Control, string> can be used in .net compact framwork 2.0 in MSDN, but when I use it in VS2005, it can't find the Class ,and There is no System.Collections.Generic in directory "C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v1.0\WindowsCE",How can I use it


Answer this question

How to use Dictionary<Control, string>?

  • Radith

    I'm using it in my application! What error you are getting from compiler when you write this code

  • Roger McKinney

    Yes, it can be used on NETCF V2 but you're on NETCF V1 project as path indicates. If you want to use V2 features you would need to create V2 project type.



  • How to use Dictionary<Control, string>?