<?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 22 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=iterator&amp;p=21">1.Previous</a><br />
<a accesskey="3" href="page.php?w=iterator&amp;p=23">3.Next</a>
</p>
<p>is required to begin iterating.</p>

<p>Enumerators are typically obtained by calling the <code>GetEnumerator()</code> method of an object implementing the <code>IEnumerable</code> interface. a <code>Current</code> property, to obtain the value of the element currently being pointed at;Container classes typically implement this interface. However, the <a href="page.php?w=foreach">foreach</a> statement in <a href="page.php?w=C_Sharp_%28programming_language%29">C</a> can operate on any object providing such a method, even if it does not implement</p><p>
<a accesskey="1" href="page.php?w=iterator&amp;p=21">1.Previous</a><br />
<a accesskey="3" href="page.php?w=iterator&amp;p=23">3.Next</a>
</p>

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

</card>
</wml>
