public class RollingList <T> : ICollection <T> { #region Private Fields private int _capacity; private LinkedList <T> _linkedList; #endregion #region Constructors public RollingList( int capacity) { _capacity = capacity; _linkedList...
Have you ever wanted to create a rolling list? Something similar to a queue but with a size limitation that kicks out the oldest element and brings in the new. I've been looking for a way to do this for a while now, and finally decided to just create...