Skip to content

Instantly share code, notes, and snippets.

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;
}
class DoubleLinkedList<T>
{
private Node<T> _firstNode;
//private Node<T> _lastNode;
public bool isEmpty
{
get
{
return _firstNode == null;