9 - Custom Linked List - Requirements
9 - Custom Linked List - Requirements
The list must be able to store items of any type. Null values can also be stored in this list.
It may be either a singly-linked list or a doubly-linked list. The solution of this assignment
presented in the course will focus on a singly-linked list.
Required operations
The collection should implement the following interface:
This interface extends the ICollection<T>, so methods from this interface will need to be
implemented as well. See the next page for the full list of required methods and their
descriptions.
void AddToFront(T? item);
Adds a new item to the front of the list.
IEnumerator<T?> GetEnumerator();
Returns the generic enumerator that will enable iteration of the collection with the
foreach loop.
IEnumerator GetEnumerator();
Returns the enumerator that will enable iteration of the collection with the foreach
loop.