예제 #1
0
 //------------------------------------------------------------------------------------------------------------------------
 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;
     }
 }
예제 #2
0
 public Knoten(Knoten <T> left, T value, Knoten <T> right)
 {
     Value = value;
     Right = right;
     Left  = left;
 }
예제 #3
0
 //------------------------------------------------------------------------------------------------------------------------
 public void Clear()
 {
     First = Last = null;
 }