Click here to Skip to main content
15,896,201 members
Home / Discussions / C#
   

C#

 
AnswerRe: ArrayList vs. List<object></object> PinPopular
led mike8-Oct-08 5:39
led mike8-Oct-08 5:39 
GeneralRe: ArrayList vs. List Pin
Dave Kreskowiak8-Oct-08 8:29
mveDave Kreskowiak8-Oct-08 8:29 
GeneralRe: ArrayList vs. List Pin
led mike8-Oct-08 10:02
led mike8-Oct-08 10:02 
AnswerRe: ArrayList vs. List&lt;object&gt; Pin
Simon P Stevens8-Oct-08 5:41
Simon P Stevens8-Oct-08 5:41 
GeneralRe: ArrayList vs. List&lt;object&gt; Pin
dbrenth8-Oct-08 5:44
dbrenth8-Oct-08 5:44 
GeneralRe: ArrayList vs. List&lt;object&gt; Pin
Mark Salsbery8-Oct-08 7:35
Mark Salsbery8-Oct-08 7:35 
AnswerRe: ArrayList vs. List&lt;object&gt; Pin
DaveyM698-Oct-08 5:43
professionalDaveyM698-Oct-08 5:43 
AnswerRe: ArrayList vs. List&lt;object&gt; Pin
Scott Dorman8-Oct-08 7:38
professionalScott Dorman8-Oct-08 7:38 
For the most part the way you interact with a List<T> and an ArrayList are the same. They provide very similar functionality to the calling code.

Specifically, List<Object> is defining a generic list of type Object so from a data type point of view it is the same as ArrayList since ArrayList can only contain objects.

In general, I think it is preferable to use the generics, particularly if you are working with strong data types (things other than objects) as you are able to get better performance from the generics because you no longer have most (if not all) of the boxing/unboxing operations that need to be performed. That being said, by creating a List<Object>, you probably aren't really gaining a whole lot over an ArrayList.

Scott Dorman
Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA

[Blog][Articles][Forum Guidelines]
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai

AnswerRe: ArrayList vs. List&lt;object&gt; Pin
Daniel Grunwald8-Oct-08 8:11
Daniel Grunwald8-Oct-08 8:11 
AnswerRe: ArrayList vs. List&lt;object&gt; Pin
CPallini8-Oct-08 9:15
mveCPallini8-Oct-08 9:15 
AnswerRe: ArrayList vs. List&lt;object&gt; Pin
Guffa8-Oct-08 9:19
Guffa8-Oct-08 9:19 
QuestionCreate new Table in Access mdb Pin
Planker8-Oct-08 5:07
Planker8-Oct-08 5:07 
AnswerRe: Create new Table in Access mdb Pin
led mike8-Oct-08 5:41
led mike8-Oct-08 5:41 
GeneralRe: Create new Table in Access mdb [modified] Pin
Planker8-Oct-08 6:34
Planker8-Oct-08 6:34 
QuestionRe: Create new Table in Access mdb Pin
led mike8-Oct-08 10:05
led mike8-Oct-08 10:05 
AnswerRe: Create new Table in Access mdb Pin
Planker9-Oct-08 7:41
Planker9-Oct-08 7:41 
GeneralRe: Create new Table in Access mdb Pin
led mike9-Oct-08 8:22
led mike9-Oct-08 8:22 
QuestionIs it possible to sort of embed an assembly within another assembly" Pin
Member 30621768-Oct-08 4:41
Member 30621768-Oct-08 4:41 
AnswerRe: Is it possible to sort of embed an assembly within another assembly" Pin
#realJSOP8-Oct-08 4:47
professional#realJSOP8-Oct-08 4:47 
GeneralRe: Is it possible to sort of embed an assembly within another assembly" Pin
Member 30621768-Oct-08 4:51
Member 30621768-Oct-08 4:51 
GeneralRe: Is it possible to sort of embed an assembly within another assembly" Pin
Ashfield8-Oct-08 4:58
Ashfield8-Oct-08 4:58 
GeneralRe: Is it possible to sort of embed an assembly within another assembly" Pin
#realJSOP8-Oct-08 5:05
professional#realJSOP8-Oct-08 5:05 
AnswerRe: Is it possible to sort of embed an assembly within another assembly" Pin
Ennis Ray Lynch, Jr.8-Oct-08 5:18
Ennis Ray Lynch, Jr.8-Oct-08 5:18 
AnswerRe: Is it possible to sort of embed an assembly within another assembly" Pin
PIEBALDconsult8-Oct-08 5:19
mvePIEBALDconsult8-Oct-08 5:19 
AnswerRe: Is it possible to sort of embed an assembly within another assembly" Pin
teejayem8-Oct-08 8:34
teejayem8-Oct-08 8:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.