This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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;