/// <summary> /// This recursive function decrements the position index of all the nodes /// in front of this node. Used for when a node is inserted into a list. /// </summary> private void IncrementForward() { if (Next != null) { Next.Index++; Next.IncrementForward(); } }
private void IncrementForward() { if (Next == null) { return; } Next.Index++; Next.IncrementForward(); }