Should I use an ArrayList or IList

Posted by Farstucker on Stack Overflow See other posts from Stack Overflow or by Farstucker
Published on 2010-03-18T20:42:43Z Indexed on 2010/03/18 20:51 UTC
Read the original article Hit count: 157

Filed under:
|
|

Im using the .NET framework 1.1 and Im hoping someone could help me implement a dynamic array of objects?

A watered-down example of the object I wish use is below.

Class CarObj
{
   public string CarName;
   public string CarYear;
}

Should I use an ArrayList or do you think it would be better to make a CarList class to implement an IList interface? Is there a performance benefit for one over another?

© Stack Overflow or respective owner

Related posts about c#

Related posts about arraylist