aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
ArrayList
Generics Generics Generics !!!
Generics - need help
SCJP 6 question
Query on Generics (java 1.5 / Java 1.6)