I am trying to create a linked list just to see if I can, and I am having trouble getting my head around it. Does anyone have an example of a very simple implementation of Linked list using C#? All the examples I have found so far are quite overdone.
Share
A Linked List, at its core is a bunch of Nodes linked together.
So, you need to start with a simple Node class:
Then your linked list will have as a member one node representing the head (start) of the list:
Then you need to add functionality to the list by adding methods. They usually involve some sort of traversal along all of the nodes.
Also, inserting new data is another common operation:
This should provide a good starting point.