Part 6- Implement the Node in Linked List C# | Linked List Tutorials in C#

Node Implementation program in C#

using System;
using System.Collections.Generic;
using System.Text;

namespace LinkedListTutorial
{
   public class Node
    {
        private object data;
        private Node _next;

        public Node(object data, Node next)
        {
            this.data = data;
            this._next = next;
        }

        public object Data
        {
            get { return this.data; }
            
            set { this.data = value; }
        }


        public Node Next
        {
            get { return this._next; }

            set { this._next = value; }
        }
    }
}






Share this

Related Posts

Previous
Next Post »