Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Arraylist vs genericlist List<> in .net 2.0
WhatsApp
Raghavendra U
11y
28.1
k
0
1
25
Blog
Arraylist vs Genericlist List<> in .net 2.0:
Arraylist:
It is like Array of objects.
"System.Collections"
is the Namespace for Arraylist. It automatically added to namespace section in aspx.cs page.
We need not to specify object type arraylist going to contain.
In arraylist each item is stored as object. And return value as object.
It needs to box and unbox the elements.
List<T>:
"System.Collections.Generic"
is the Namespace for List. We need to add this.
We need to specify object type which type of elements it contain.
Ex:
List<string> StrObj=new List<string>();
From the above example StrObj will only store string objects.
It doesn't need.
Up Next
How To Create A Setup File In VS 2015
Ebook Download
View all
Printing in C# Made Easy
Read by 22.4k people
Download Now!
Learn
View all
Membership not found