Esempio n. 1
0
  public void InsertAfter(ILNodeValue<T> base, ILNodeValue<T> newValue) {
    ILNode<T> newNode = newValue.GetNode(identifier);
    ILNode<T> baseNode = base.GetNode(identifier);

    newNode.Delete();
    baseNode.InsertAfter(newNode);
    if (baseNode == tail) tail = newNode;
  }
Esempio n. 2
0
 public void Append(ILNodeValue<T> value) {
   ILNode<T> node = value.GetNode(identifier);
   if (tail == null) {
     head = tail = node;
     return;
   }
   tail.InsertAfter(node);
   tail = node;
 }