//------------------------------------------------------------------------------------------------------------------------ public void Add(T NewNode) { if (First == null) { var add = new Knoten <T>(null, NewNode, null); First = add; Last = add; return; } else { var add = new Knoten <T>(Last, NewNode, null); Last.Right = add; Last = add; } }
public Knoten(Knoten <T> left, T value, Knoten <T> right) { Value = value; Right = right; Left = left; }
//------------------------------------------------------------------------------------------------------------------------ public void Clear() { First = Last = null; }