What are the drawbacks of collections in .net ?

 Posted by Bharathi Cherukuri on 6/5/2012 | Category: ASP.NET Interview questions | Views: 2974 | Points: 40

The drawbacks of collections in .net are:

1. Performance will be low as they store each and every member as an object
2. Incorrect parsing throws runtime "Invalid Cast" exception
Examples of System.Collections: Array List, Hash Table, Stack, Queue
Note: System.Collections.Generic came up in .NET 2.0 to overcome the drawbacks of collections.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Akiii on: 6/7/2012 | Points: 10
Good points !

Thanks and Regards
Posted by: Bharathi Cherukuri on: 6/7/2012 | Points: 10
Thanks Akiii


Login to post response