31 lines
641 B
C#
31 lines
641 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace StgSharp.Logic
|
|
{
|
|
public class LinkedListNode<T> where T : INode
|
|
{
|
|
internal readonly T _this;
|
|
internal LinkedListNode<T> _previous;
|
|
internal LinkedListNode<T> _next;
|
|
|
|
public virtual LinkedListNode<T> Previous
|
|
{
|
|
get { return _previous; }
|
|
set { _previous = value; }
|
|
}
|
|
|
|
public LinkedListNode<T> Next
|
|
{
|
|
get { return _next; }
|
|
set { _next = value; }
|
|
}
|
|
|
|
public LinkedListNode(T t)
|
|
{
|
|
_this = t;
|
|
}
|
|
}
|
|
}
|