private class ListNode { public int Data = 0; public ListNode Next = null; public ListNode(int data, ListNode next) { Data = data; Next = next; } } private ListNode Head = null; private ListNode Tail = null; public void Print() { ListNode p = Head; while (p != null) { Console.WriteLine(p.Data); p = p.Next; } } Do I understand correctly that in the Print method, "p" is a local reference variable that refers to the main element of the list? (exactly in the first line of the method)
ListNodeobject, which hasData- Igor