LinkListNode<T>.Advance Method

Computes the node that is n steps away from this and returns it. n can be negative to step backwards. If the resulting node is out of list, null is returned.
public LinkListNode<T> Advance( 
   int n 
)

Parameters

n
int

The number of steps to advance. Can be negative.

Return Value

LinkListNode<T>

The node n steps away, or null if out of list bounds.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition