File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Languages and the fly likes C# Generic Collection - List<object> vs List<string> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "C# Generic Collection - List&lt;object&gt; vs List&lt;string&gt;" Watch "C# Generic Collection - List&lt;object&gt; vs List&lt;string&gt;" New topic
Author

C# Generic Collection - List&lt;object&gt; vs List&lt;string&gt;

Bupjae Lee
Ranch Hand

Joined: May 14, 2007
Posts: 107


In C#, Above code is producing compile error:



In java, similar code is compiled without error



Am I doing something wrong with C# generic collections?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: C# Generic Collection - List&lt;object&gt; vs List&lt;string&gt;
 
Similar Threads
SCJP 6 question
ArrayList
Generics Generics Generics !!!
Query on Generics (java 1.5 / Java 1.6)
Generics - need help