.net - Is there a Collection that is suitable for keeping N elements (within size constraints)? -
I'm looking at the history of objects that represent the result of a process, I currently see a certain size for it I created a square around the array and made the entire array back to an unit (using AracupiPeto) when it was made to make room for the new value added. I'm guessing that this is not ineligible because I add a price every time, when I add a value, I was wondering if any existing collection type is more favorable for this?
EDIT: Dah, i have just discovered that I do not need to move the array, but just keep a record where the array is the virtual start. Regardless of the type of the object (according to my understanding, the question is still standing)
I would recommend using the queue to store history.
You can create a method in the utility class to add entries in the queue where you can check the queue size before adding an object.
You can refer to more details.
Comments
Post a Comment