Hello Daniel,
Generic collections were not there in VS 2003. So you couldnt have written this code in VS 2003, if you had- it wouldnt have compiled error free.
Anyways, when you port from .NET 1.1 to .NET 2.0 the converter wont add any namespaces or assmeblies to your project that were not there in VS 2003, you can guess why?
So to use any features that are specific to VS 2005 either you create the project from scratch in VS 2005 or if you are porting from an earlier version, modify your project to add the required namespaces and assemblies, that are introduced only in VS 2005 and were not ther ealier.
In the case of above code sample, add this line in the begining
Imports System.Collections.Generic
and your project should comile error free without any further changes.
Read about namespaces and their importance if you dont know what they are, you are going to need that information and a lot more if you r doing development in .NET.
Regards
Ankur Verma
|