Anonymous user
Doubly-linked list/Traversal: Difference between revisions
m
→{{header|C sharp}}
No edit summary |
|||
Line 215:
}</lang>
=={{header
<lang
using System.Collections.Generic;
namespace RosettaCode.DoublyLinkedList
{
{
private static void Main()
foreach (var c in ll)▼
{
}▼
{
Console.WriteLine(current.Value);
} while ((current = current.Next) != null);
▲ do
} while ((current = current.Previous) != null);
▲ }
}
}</lang>
|