7 lines
137 B
C#
7 lines
137 B
C#
var current = [head of list to traverse]
|
|
while(current != null)
|
|
{
|
|
// Do something with current.Value.
|
|
|
|
current = current.Next;
|
|
}
|