As you saw in the "Copying an Array" section, it isn't easy to maintain a dynamic list in which the array can potentially grow or shrink. It involves creating new arrays and then copying the elements from the old array into the new array. However, there are a set of classes in .NET that make managing dynamic lists easier. One of these classes is System.Collections.ArrayList . To create an ArrayList:
Tips
|