I have written a basic linked list class in C#. It has a Node object, which (obviously) represents every node in the list.
The code does not use IEnumerable, however
for(int i=0; icurrent.next.element) { Swap(current.elment,current.next.element); } current=current.next; } }
increment counter when you add or insert elements to your linked lists