Lecture overview -- Keyboard shortcut: 'u'  Previous page: The Interface <b><kbd>ICollection<T></kbd></b> -- Keyboard shortcut: 'p'  Next page: Overview of the class <b><kbd>Collection<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 7 : 36
Object-oriented Programming in C#
Collection Classes
The Interface IList<T>

IList<T> contributes with indexing capabilities

 

  • Operations in the interface IList<T>:

    • Those prescribed in the superinterfaces ICollection<T> and IEnumerable<T>

    • T this[int index]

    • int IndexOf(T element)

    • void Insert(int index, T element)

    • void RemoveAt(int index)