The two most common System.Array properties
Length: The total number of elements in all dimensions.
Rank: The number of dimensions.
The two “copy” methods of System.Array
Clone: does a shallow copy
CopyTo:copies the elements of the arry to another array.
Shallow Copy and its pitfall
When cloning an array with reference types, the new (cloned) array will contian the same references as the original.
System.Collections
ArrayList (basic)
HashTable (key/value pair)
Queue (FIFO)
SortedList (sorted by the key value)
Stack (LIFO)
key methods of the ArrayList class
Add
AddRange (multiple objects)
Insert (add to a location)