Lecture overview -- Keyboard shortcut: 'u'  Previous page: Collections - History and Overview [Section] -- Keyboard shortcut: 'p'  Next page: Generic Collections in C# [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 2 : 36
Object-oriented Programming in C#
Collection Classes
A historic View on Collection Programming

  • Native arrays and custom made lists

    • Fixed sized arrays - limited set of operations

    • Variable sized linked lists - direct pointer manipulation

  • First generation collection classes

    • Elements of type Object - Flexible sizing - Rich repertoire of operations

    • Type unsafe - Casting - Inhomogeneous collections

  • Second generation collection classes

    • The flexibility of the first generation collections remains

    • Type safe - Generic - Type parameterized - Homogeneous

 

Modern collection libraries blur the distinction between arrays and lists