| | Collection Classes - slide 32 : 36 |
Notes about non-generic Collections
- Class Array - in the System namespace
- The base class of all native C# arrays
- Contains lots of useful method - Still useful
- Class ArrayList - in System.Collections
- Replaced by List<T> in System.Collections.Generic
- Class Hashtable - in System.Collections
- Replaced by Dictionary<K, V> in System.Collections.Generic
- Interface ICollection - System.Collections
- Contains very few members - Count and CopyTo
- ICollection<T> is more comprehensive - Add, Remove, Count, CopyTo, and more
- Class BitArray
- Of non-generic nature - Still very useful
- Can be used for simple simulation of set of integers