Ejemplo 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
        }
Ejemplo n.º 2
0
 public void InsertBefore(SiblingNode <TKey, TValue> newSiblings)
 {
     Debug.Assert(LeftSibling != null);
     LeftSibling.InsertAfter(newSiblings);
 }
Ejemplo n.º 3
0
 private void Clear()
 {
     _leftSibling  = null;
     _rightSibling = null;
 }