File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

C# Generic Collection - List<object> vs List<string>

 
Bupjae Lee
Ranch Hand
Posts: 107
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic