This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DoubleLinkedList<T> | |
{ | |
private Node<T> _firstNode; | |
//private Node<T> _lastNode; | |
public bool isEmpty | |
{ | |
get | |
{ | |
return _firstNode == null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Node<T> | |
{ | |
private T _object { get; set; } | |
public Node<T> nextNode { get; set; } | |
public Node<T> previousNode { get; set; } | |
public Node(T _object) | |
{ | |
this._object = _object; | |
} |