/// <summary> /// Adds a value to the end /// </summary> /// <param name="value">What is being added</param> public void AddLast(T value) { if (head == null) { head = value; } }
public SinglyLinkedNode(T itemToStore, SinglyLinkedNode <T> next = null) { Item = itemToStore; Next = next; }
public SinglyLinkedList() { count = 0; head = null; }