C# - Printing the reasult of Double LinkedList : Helo, i have a Double LinkedList that i want to print using concoleWriteLine to see the reault of the linkedList.  the problam i have is that i know how to print a list with just a Next node in terms of the stopping condition (which is when node.next is null), but this is a double linked list with both Next and Previous. where every node in the list connect's to other node so there are no node.next == null.

what is the stopping condition in this type of list? right now i have an infinite loop that printing the list over and over.