Esempio n. 1
0
        public void Insert(T value)
        {
            if (head == null)
            {
                head = new LinkedListNode(value);
                return;
            }
            LinkedListNode val = head;

            while (val.next != null)
            {
                val = val.next;
            }
            val.SetNext(new LinkedListNode(value));
        }