Skip to content

Instantly share code, notes, and snippets.


gdyrrahitis/Stack.cs Secret

Last active Nov 7, 2018
What would you like to do?
private readonly T[] _stack;
private readonly int _size;
private int _topMostItemIndex = -1;
public Stack(int size = 16)
_size = size;
_stack = new T[size];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment