views:

803

answers:

3

I need a circular linked list, so I am wondering if LinkedList is a circular linked list?

+2  A: 

No, its not. See MSDN

Lucas Jones
First yes, now no.... you are confusing doubly linked with circular.
leppie
Yes! Sorry. Fixed now.
Lucas Jones
+5  A: 

No. It is a doubly linked list, but not a circular linked list. See MSDN for details on this.

LinkedList<T> makes a good foundation for your own circular linked list, however. But it does have a definite First and Last property, and will not enumerate around these, which a proper circular linked list will.

Reed Copsey
+4  A: 

If you need a circular data structure, have a look at the C5 generic collections library. They have any collection that's imaginably useful in there, including a circular queue (which might help you).

Jacob