Tuesday 15 July 2014

c# - What's so bad about ArrayLists? -


I am working to increase the platforms of my company and during my research, I have received many comments from people saying The array list that should be avoided should be avoided. However, he has never given much explanation why and why I have not got any articles why they are so horrible.

"Arrelist" (sometimes called "vectors") are exactly the data structure ; It's just that ArrayList is a class that should be avoided in C #.

The reason for this is not normal, so you can store any object inside, breaking type-protection. Instead list & lt; T & gt; Use .

No comments:

Post a Comment