Lecture overview -- Keyboard shortcut: 'u'  Previous page: The non-generic collection library in C# -- Keyboard shortcut: 'p'  Next page: Patterns and Techniques [Section] -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Help page about these notes  Alphabetic index  Course home  Page 32 : 36
Object-oriented Programming in C#
Collection Classes
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