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