Like other data structures, lists must be defined and instantiated prior to being used. Each of the four languages that we will examine in this text has varying support for, and unique implementations of, the list data structure. Let's briefly examine how to instantiate a list in each language.
Instantiating lists in C# requires the use of the
//Array backed lists ArrayList myArrayList = new ArrayList(); List<string> myOtherArrayList = new List<string>(); //Linked lists LinkedList<string> myLinkedList = new LinkedList<string>();
ArrayList class originated in .NET 1.0, and it is not used very often anymore. Most developers prefer to use the generic concrete implementation,
List<of T>, for an array-based ...