示例#1
0
        public void Push(T data)
        {
            var newItem = new ItemPrevious <T>(data);

            newItem.Previous = Head;
            Head             = newItem;
            Count++;
        }
示例#2
0
 public LinkedStack(T data)
 {
     Head  = new ItemPrevious <T>(data);
     Count = 1;
 }