Can we use GetEnumerator() without using IEnumerable interface?
Posted
by Bon_chan
on Stack Overflow
See other posts from Stack Overflow
or by Bon_chan
Published on 2010-05-25T14:46:50Z
Indexed on
2010/05/25
14:51 UTC
Read the original article
Hit count: 234
I have a class called Primes and this class implements GetEnumerator() without implementing IEnumerable interface.
public class Primes
{
private long min;
private long max;
public Primes()
: this(2, 100)
{
}
public IEnumerator GetEnumerator()
{...}
I don't get it. Am I missing something?
© Stack Overflow or respective owner