public void PopEnd() { if (_last == null) { return; } if (_last != null) { if (Length == 1) { _front = _last = null; _length--; } else { _last = _last.Previous; _last.Next = null; _length--; } } }
public DoublyLinkedList() { _front = null; _last = null; _length = 0; }
private void Init(T value) { _front = _last = new DoublyLinkedListNode <T>(value); }