public void Push(T data) { var newItem = new ItemPrevious <T>(data); newItem.Previous = Head; Head = newItem; Count++; }
public LinkedStack(T data) { Head = new ItemPrevious <T>(data); Count = 1; }