An ArrayList object is created in a similar manner, althoug without the ''type'' argument:
+
An ArrayList object is created in a similar manner, although without the ''type'' argument:
ArrayList ''name'' = new ArrayList();
ArrayList ''name'' = new ArrayList();
</pre>
</pre>
−
A list item value can similarly be changed using the index combined with the assignment operating. For example, to change the color from Yellow to Ingido:
+
A list item value can similarly be changed using the index combined with the assignment operator. For example, to change the color from Yellow to Ingido:
<pre>
<pre>
== Sorting Lists in C# ==
== Sorting Lists in C# ==
−
There is no way to tell C# to automatically sort a list as items are added. If the items in a list are required to be always sorted into into order the ''Sort()'' method should be called after new items are added:
+
There is no way to tell C# to automatically sort a list as items are added. If the items in a list are required to be always sorted into order the ''Sort()'' method should be called after new items are added: