public SingleLinkedListEnumerator(SingleLinkedList <T> list)
 {
     this.list   = list;
     index       = -1;
     currentItem = list.begin;
 }
 public void Concat(SingleLinkedList <T> nodeList)
 {
     this.end.Next = nodeList.begin;
     this.end      = nodeList.end;
     _size        += nodeList.Count;
 }
Esempio n. 3
0
 public PrioritySingleLinkedList(Func <T, T, bool> comparer)
 {
     this.comparer = comparer;
     save          = new SingleLinkedList <T>();
 }