3
Reply

What is the Difference between IEnumerable and IEnumerator

mukund Lahane

mukund Lahane

15y
10.7k
0
Reply

    Please refer to the following URL to know the differences between IEnumerable and IEnumerator,http://onlydifferencefaqs.blogspot.in/2012/07/dotnet-programming-concepts-difference.html

    An IEnumerator is a thing that can enumerate: it has the MoveNext, Current, and Reset methods (which in .NET code you probably won't call explicitly, though you could).

    An IEnumerable is a thing that can be enumerated...which simply means that it has a GetEnumerator method that returns an IEnumerator.

    http://kalitinterviewquestions.blogspot.com/

    IEnumerable have one method GetEnumerator()

    IEnumerator have one Property current and two methods Reset and MoveNext