Hello everyone,
I am wondering why do we need to derive some type from IEnumerator<T>? Could anyone show me some useful samples?
I think using IEnumerator<T> itself should be enough in all cases?
thanks in advance,
George
Printable View
Hello everyone,
I am wondering why do we need to derive some type from IEnumerator<T>? Could anyone show me some useful samples?
I think using IEnumerator<T> itself should be enough in all cases?
thanks in advance,
George
This page has an illustration of when you can create a custom iterator
http://msdn.microsoft.com/en-us/libr...numerator.aspx
Thanks indigo0086,
My question is about how to write the generics form IEnumeraot<T>, especially how to write the constructor and dealing with T. Your referred link is about the non-generics form of IEnumerator.
Any more ideas or references? :-)
regards,
George