Exemplo n.º 1
0
        public void InsertAfter(SiblingNode <TKey, TValue> newSiblings)
        {
            var nextLocal = RightSibling;
            var lastTheir = newSiblings.LeftSibling;

            RightSibling          = newSiblings;
            nextLocal.LeftSibling = lastTheir; // Opposite directions are set in setters
        }
Exemplo n.º 2
0
 public void InsertBefore(SiblingNode <TKey, TValue> newSiblings)
 {
     Debug.Assert(LeftSibling != null);
     LeftSibling.InsertAfter(newSiblings);
 }
Exemplo n.º 3
0
 private void Clear()
 {
     _leftSibling  = null;
     _rightSibling = null;
 }