Answers for "linkde list c# single"

C#
0

linkde list c# single

public class LinkedList
{
    public class Node
    {
        // link to next Node in list
        public Node next = null;
        // value of this Node
        public object data;
    }

    private Node root = null;

    public Node First { get { return root; } }

    public Node Last 
    {
        get
        {
            Node curr = root;
            if (curr == null)
                return null;
            while (curr.next != null)
                curr = curr.next;
            return curr;
        }
    }
}
Posted by: Guest on December-28-2020

Code answers related to "linkde list c# single"

C# Answers by Framework

Browse Popular Code Answers by Language