public SingleLink Insert(int val) { // Creates a link, sets its link to the first item and then makes this the first item in the list. SingleLink link = new SingleLink(val); link.NextLink = _first; _first = link; return(link); }
public SinglyLinkedList() { _first = null; }