<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Iterator - Page 21 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=iterator&amp;p=20">1.Previous</a><br />
<a accesskey="3" href="page.php?w=iterator&amp;p=22">3.Next</a>
</p>
<p>are called "enumerators" and represented by the <code>IEnumerator</code> interface.<code>IEnumerator</code> provides a <code>MoveNext()</code> method, which advances to the next element and indicates whether the end of the collection has been reached; a <code>Current</code> property, to obtain the value of the element currently being pointed at; and an optional <code>Reset()</code> method, to rewind the enumerator back to its initial position. The enumerator initially points to a special value before the first element, so a call to <code>MoveNext()</code></p><p>
<a accesskey="1" href="page.php?w=iterator&amp;p=20">1.Previous</a><br />
<a accesskey="3" href="page.php?w=iterator&amp;p=22">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
