what is the difference between list and arraylist in c#?
gurusamy
0
Newbie Poster
Recommended Answers
Jump to PostF1 List and ArrayList and see what exactly the difference is :)
Jump to PostWell, to be more specific, EVERYTHING in an ArrayList gets stored as an object. The ArrayList is kind of like an Array that you can add objects to after you've instantiated it.
The ArrayList even has methods that you can use to convert the ArrayList to an Array. But, …
Jump to PostArrayList stores everything as an object, and when you retrieve the value you have to cast it back into the actual object type if you want to use any of the objects methods, …
All 9 Replies
mariocatch
0
Junior Poster
Arunkumar.K
0
Newbie Poster
alc6379
120
Cookie... That's it
Team Colleague
rajani16
0
Newbie Poster
Momerath
1,327
Nearly a Senior Poster
Featured Poster
Mitja Bonca
557
Nearly a Posting Maven
Chetan Pai
0
Newbie Poster
Ayesha_3
0
Newbie Poster
RichardGalaviz
15
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.