when code write is var s = new SLinkedList<string>(); foreach (var item in s) { Console.WriteLine(item); } function MoveNext _current is null public bool MoveNext() { _current = _current.Next; return (this._current != null); }
when code write is
var s = new SLinkedList();
foreach (var item in s)
{
Console.WriteLine(item);
}
function MoveNext _current is null
public bool MoveNext()
{
_current = _current.Next;
}