I am currently looking to make my own collection, which would be just like a regular list, except that it would only hold 10 items. If an item was added when there were already 10 items in the list, then the first item would be removed before the new item was appended.
What I want to do is create a class that extends System.Collections.Generic.List<T>
, and then modifies the Add(T item)
method to include the functionality which removes the first item if necessary.