internal void CreateItemAtBeginnning(int item) { DoubleNodeLink temp = new DoubleNodeLink(item); if (start == null) { start = temp; return; } temp.next = start; start.prev = temp; start = temp; return; }
internal void CreateItemAtEnd(int item) { DoubleNodeLink temp = new DoubleNodeLink(item); if (start == null) { start = temp; return; } p = start; while (p.next != null) { p = p.next; } p.next = temp; temp.prev = p; }
public DoubleNodeLink(object i) { data = i; prev = null; next = null; }
public DoubleLinkList() { start = null; }