I want to add “recently opened” functionality to my application and wondered if there was a simple built-in way to make lists that are “overflowing”. By this, I mean that when you add an item outside the scope of the list, all items are shifted.
An example code of the desired functionality (obviously this is not so, the list actually contains A, B, C):
List<string> list = new List<string>();
Sorry for the simple question. The problem itself is obvious to solve (the inheritance plan was inherited from List), I just don’t like to reinvent the wheel and confuse future programmers with user objects when the language or infrastructure has this functionality.
James source share