public bool MoveNext() { if (list == null) { list = _data.GetNodeList(); } if (nodePtr >= list.Count) { return(false); } else { curNode = list [nodePtr]; nodePtr++; return(true); } }