This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LimitedSizeStack<T> | |
{ | |
private int _count; | |
private int _index; | |
private int _limit; | |
private T[] _data; | |
public int Count => _count; | |
public int Limit => _limit; |