On Mon, Feb 23, 2009 at 9:58 AM, Sascha Leib <[email protected]> wrote: > List<String> StringList = new List<String>(); > > List<Object> ObjectList = (StringList as List<Object>); // [snip] > Is that a wanted behaviour? Or am I missing something? This really stops > me from using more Generics at the moment :-/
Accepting this code would defeat the purposes of generics. You could, for example, add an integer to the 'ObjectList', so how would 'StringList' return that integer as a string? It doesn't make any sense. -- Felipe. _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
