public void Add(LinkedNode node) { if (this.IsNull) { head = node; IsNull = false; Length++; } else { this.GetLast().next = node; Length++; } }
public LinkedList(LinkedNode newHead) { head = newHead; IsNull = false; Length = 1; }
public LinkedNode(int num, LinkedNode newNext) { data = num; next = newNext; }