Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Head First Android this week in the Android 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;
 
It's not a secret anymore!