public void Add(LinearListItem <T> newItem) { if (Head == null) { Head = newItem; TopItem = Head; return; } TopItem.Next = newItem; TopItem = newItem; }
public void Add(T value) { var newItem = new LinearListItem <T>(value); Add(newItem); }
public LinearList(LinearListItem <T> head, string name = "") { Head = head; Name = name; }