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

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