예제 #1
0
 public void Add(LinearListItem <T> newItem)
 {
     if (Head == null)
     {
         Head    = newItem;
         TopItem = Head;
         return;
     }
     TopItem.Next = newItem;
     TopItem      = newItem;
 }
예제 #2
0
        public void Add(T value)
        {
            var newItem = new LinearListItem <T>(value);

            Add(newItem);
        }
예제 #3
0
 public LinearList(LinearListItem <T> head, string name = "")
 {
     Head = head;
     Name = name;
 }