How to create a linked list ?
I'm trying co create a linked list manually and print it out as the way I known but it seems things doesn't works as I normal know, can any one help me what should I do in this situation so it can print all the number ?
![](https://utfs.io/f/7b55de48-b5f7-4764-923e-847d40b9560b-1nq2cb.png)
12 Replies
C# has one already. Just use that
ye I know about it, but I want to practice manually, so is there anyway ?
What’s the error it gives?
something like this
![](https://utfs.io/f/a0505bb8-da39-4698-9960-707168e9acf8-1nq2cb.png)
i changed something so now only one error
![](https://utfs.io/f/ae7b9a89-fa4f-43f3-9656-7780c86fbbf1-1nq2cb.png)
It can’t iterate the class
is it because the reference value have to be null ?
Make a class usable in a foreach statement - C#
Describes how to make a Visual C# class usable in a foreach statement. Also describes a code sample to explain the methods.
A for loop would be easier @yatta
I'll try with it
@yatta use this: