Structure of an enumerator in c#

class enumerator    // Implements IEnumerator
{
  public IteratorVariableType Current {get {...}}
  public bool MoveNext () {...}
}
 
class Enumerable    // implements IEnumerable
{
  public Enumerator GetEnumerator () {...}
}

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.