Re: iterating over collection

Fabian Schmied <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <[email protected]>
> Since I don't know your exact code/classes/requirements [1], I'm not
> sure, but I think the Dictionary<object, BaseObject> approach Adrian
> suggested might not work for you, since a Dictionary<object, Derived>
> is not assignable to a Dictionary<object, BaseObject variable or
> parameter.

Oh, forgot the footnote. Here it is:

[1] Consider using short but complete programs to illustrate such
problems, see e.g. http://www.yoda.arachsys.com/csharp/complete.html

Fabian

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.