public void InsertFront(T item) { this.Head = new SListNode <T>(item, this.Head); size++; }
public void InsertAfterThis(T item) { this.Next = new SListNode <T>(item, this.Next); }
public SList() { Head = null; size = 0; }
public SListNode(T item, SListNode <T> next) { this.Next = next; this.Item = item; }