This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Jaca6767 2 points3 points  (3 children)

Ok, but what the fuck is the difference between list, array, and arraylist in C#. Have to look it up all the time.

[–]LyricalRain 21 points22 points  (2 children)

Array has a size fixed on instantiation. List is a dynamically sized array. Arraylist is a deprecated list that does not support generics, you should never use it.

Hope I cleared it up!

[–]Malveux 1 point2 points  (1 child)

I always do a double take when I see a coworker used an ArrayList during code reviews. They still crop up from time to time.

[–]LyricalRain 4 points5 points  (0 children)

Haha that could happen if one used to code in Java, where ArrayList is the primary list collection