Collection Classes
- slide 6 : 36
The Interface
ICollection<T>
ICollection<T>
contributes with
membership, add, and remove operations
The interface
IEnumerable<T>
Operations in the interface
ICollection<T>
:
The operation prescribed in the superinterface
IEnumerable<T>
bool
Contains
(
T
element)
void
Add
(
T
element)
bool
Remove
(
T
element)
void
Clear
()
void
CopyTo
(
T[]
targetArray, int startIndex)
int
Count
bool
IsReadOnly