public void Push(int value) { var newNode = new StackNode(value); if (_Top == null) { _Top = newNode; } else { newNode.SetNext(_Top); _Top = newNode; } }
public void Push(int value) { var newNode = new StackNode(value); if (_Top == null) { _Top = newNode; } else { newNode.SetNext(_Top); _Top = newNode; } }