The type or namespace name 'Generic' does not exist in the class or namespace 'System.Collections'

The type or namespace name 'Generic' does not exist in the class or namespace 'System.Collections'

Post by pantagrue » Wed, 24 Oct 2007 07:23:14


Hi,

This is in a windows service in .NET 1.1 I seem to remember reading
somewhere that in .NET 1.1 Windows Services are limited in what
namespaces they can use - is this so? the only thing that seems to be
supported is System.Collections.Specialized.
 
 
 

The type or namespace name 'Generic' does not exist in the class or namespace 'System.Collections'

Post by ssamue » Wed, 24 Oct 2007 08:07:39

If you're talking about framework object namespaces, the 1.1 framework
is limited (just like all other versions) to namespaces that are
defined in the framework libraries and any externally referenced code.
There are no generics in the 1.1 framework, so you won't find
System.Collections.Generic.

It looks like you may be trying to down-convert 2.0 code into 1.1. If
this is the case, it will not be as trivial as I think you're trying
to make it seem. You'd need not only to replace all of the instances
of things like List<> and Dictionary<> with their 1.1 equivalents, but
also deal with any typing issues that raises.

s}