Lecture overview -- Keyboard shortcut: 'u'  Previous page: Overview of the class <b><kbd>List<T></kbd></b> -- Keyboard shortcut: 'p'  Next page: Sample use of the Find operations in <b><kbd>List<T></kbd></b> -- 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 13 : 36
Object-oriented Programming in C#
Collection Classes
Sample use of class List<T>

Illustration of the Add, Insert, and Removal operations

Illustration of list bulk operations

 

/user/normark/oop-csharp-1/sources/c-sharp/collections/list/0/prog.csBasic operations on a List of characters. This program is explained

A C# 3.0 program.

/user/normark/oop-csharp-1/sources/c-sharp/collections/list/0/outputOutput of the program with basic operations on a List of characters.


  • Observations

    • The range operations operations, such as InsertRange where not present in Collection<T>

      • InsertRange and RemoveRange

      • Also known as bulk operations

    • The delegate-parameterized operations were not present in Collection<T>

      • RemoveAll and TrueForAll